Page 1 of 1

Can I rotate an Image 180 Degrees with Freeimage

Posted: Tue Jun 10, 2008 9:04 am
by PAUL SIMM
I need to turn upside down scanned images. Does TImage have the posibility?

Posted: Tue Jun 10, 2008 9:49 am
by StefanHaupt
Paul,

you can use these functions to rotate images with FreeImage

Code: Select all

DLL32 STATIC FUNCTION FIRotate ( hDib AS LONG, nAngle AS _DOUBLE ) AS LONG;
      PASCAL FROM "_FreeImage_RotateClassic@12" LIB hLib

DLL32 STATIC FUNCTION FIRotateEX ( hDib AS LONG, nAngle AS _DOUBLE, x_Shift AS _DOUBLE,y_Shift AS _DOUBLE,;
                                   x_Orig AS _DOUBLE, y_Orig AS _DOUBLE, lMask AS BOOL ) AS LONG;
      PASCAL FROM "_FreeImage_RotateEx@48" LIB hLib

and...

Posted: Tue Jun 10, 2008 2:10 pm
by fleal
Hi,
I have two images en test.tiff
I try show the second imagen with freeimage.... This is possible ??

Regards,
Fernando

Re: and...

Posted: Wed Jun 11, 2008 7:32 am
by StefanHaupt
Fernando,
fleal wrote:Hi,
I have two images en test.tiff
I try show the second imagen with freeimage.... This is possible ??
I donĀ“t know, you can look in the manual of freeimage if such a feature is supported