Vampyre Imaging Library Forum

Imaging Category => Help & Questions => Topic started by: gaara on 13 March 2008, 20:28:14

Title: Hi. Problems with rotate
Post by: gaara 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
Title: Re: Hi. Problems with rotate
Post by: Galfar 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.