FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Can I rotate an Image 180 Degrees with Freeimage
Posts: 86
Joined: Fri Oct 07, 2005 07:59 AM
Can I rotate an Image 180 Degrees with Freeimage
Posted: Tue Jun 10, 2008 09:04 AM

I need to turn upside down scanned images. Does TImage have the posibility?

Regards/Saludos
Paul

paul@pes-systems.net
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Can I rotate an Image 180 Degrees with Freeimage
Posted: Tue Jun 10, 2008 09:49 AM
Paul,

you can use these functions to rotate images with FreeImage

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
Posts: 234
Joined: Tue Oct 25, 2005 12:39 AM
and...
Posted: Tue Jun 10, 2008 02:10 PM

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

Regards,
Fernando

Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: and...
Posted: Wed Jun 11, 2008 07: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

Continue the discussion