Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Imaging component for newbies ????

PsY2kPsY2k Posts: 6Member
Hi there ! I'm a beginner (duh) and i wonder if you know a delphi component that can display images (jpg) and rotate them without much fuss.If you have one can you mail it at toma_daniel2k@yahoo.com ???

Thanks in advance.

Comments

  • zibadianzibadian Posts: 6,349Member
    : Hi there ! I'm a beginner (duh) and i wonder if you know a delphi component that can display images (jpg) and rotate them without much fuss.If you have one can you mail it at toma_daniel2k@yahoo.com ???
    :
    : Thanks in advance.
    :
    Displaying an jpg-image is very easy using the TImage component. At design-time just double-click the component to show the load dialog box. At run-time you need to call the TImage.Picture.LoadFromFile() method.
    Rotating the image either requires your own rotating code, or a new component, which isn't part of the standard Delphi. So for the latter you'll need to search the web, or perhaps some-one here knows of such a component.
  • GoodGrendelGoodGrendel Posts: 61Member
    asuming the timage has a tcanvas rotating 90,180,270 degrees wont be a problem since there's canvas.pixels[x,y].

    Anyway, there are already some functions to rotate though, i've encountered them once when i was expirimenting on compressing bmp to jpg
  • djjd47130djjd47130 Posts: 7Member
    I don't remember where I found this code, but here's some good image rotation code. Hope it helps!

Sign In or Register to comment.