Author Topic: Hi. Problems with rotate  (Read 1240 times)

Offline gaara

  • Imaging User
  • *
  • Posts: 3
    • View Profile
Hi. Problems with rotate
« on: 13 March 2008, 20:28:14 »
Hi everyone I tried to use Vampyre Imaging library looks so cool but there is one problem a simple I guess.
Actually can you tell me how show an image in a Timage using the function Imaging.rotate(img,90);
I tried to do this simple example
var img:TimageData
 initImage(img)
 imaging.loadfilefrom('x:\y.bmp',img)
 Imaging.rotate(img,90);
 something like before I did in code but I was wondering how could I but this image in a Timage and how to assign into a bitmap. Thanks for reading see ya  :o

Offline Galfar

  • Administrator
  • Imaging User
  • *****
  • Posts: 312
    • View Profile
    • Galfar's Homepage
Re: Hi. Problems with rotate
« Reply #1 on: 16 March 2008, 23:02:49 »
You can use ConvertDataToBitmap function from ImagingComponents unit to convert TImageData to TBitmap.
Then you can assign this bitmap to TImage.Picture.Bitmap.