Can I rotate an Image 180 Degrees with Freeimage

Post Reply
User avatar
PAUL SIMM
Posts: 63
Joined: Fri Oct 07, 2005 7:59 am
Location: Madrid, Spain
Contact:

Can I rotate an Image 180 Degrees with Freeimage

Post by PAUL SIMM »

I need to turn upside down scanned images. Does TImage have the posibility?
Regards/Saludos
Paul

paul@pes-systems.net
StefanHaupt
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Post 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
kind regards
Stefan
fleal
Posts: 234
Joined: Tue Oct 25, 2005 12:39 am
Location: México, DF

and...

Post by fleal »

Hi,
I have two images en test.tiff
I try show the second imagen with freeimage.... This is possible ??

Regards,
Fernando
StefanHaupt
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: and...

Post 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
kind regards
Stefan
Post Reply