Can I rotate an Image 180 Degrees with Freeimage

Can I rotate an Image 180 Degrees with Freeimage

Postby PAUL SIMM » Tue Jun 10, 2008 9:04 am

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

paul@pes-systems.net
User avatar
PAUL SIMM
 
Posts: 83
Joined: Fri Oct 07, 2005 7:59 am
Location: Madrid, Spain

Postby StefanHaupt » Tue Jun 10, 2008 9:49 am

Paul,

you can use these functions to rotate images with FreeImage

Code: Select all  Expand view
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
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

and...

Postby fleal » Tue Jun 10, 2008 2:10 pm

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

Regards,
Fernando
fleal
 
Posts: 234
Joined: Tue Oct 25, 2005 12:39 am
Location: México, DF

Re: and...

Postby StefanHaupt » Wed Jun 11, 2008 7:32 am

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
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 93 guests