Loading...

Rotateangle and CCITT4

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

Rotateangle and CCITT4

Postby rromeijn » Mon Jul 05, 2010 2:49 pm

i Use several functions on an bitonal Tiff CCITT4
when i use
SaveAsTIFF(Filename, 4)
the image gets saved as a Tiff CCITT4

But when i use RotateAngle and SaveAsTIFF(Filename, 4), the image becomes a LZW compressed color or grayscale image

Is this the normal way in GdPicture?
How do i get my image saved as Bitonal Tiff CCITT4

Delphi code used:
Code: Select all
 Imaging1.CreateImageFromFile(Filename);
  D:=-1*Imaging1.GetSkewAngle;
  Imaging1.RotateAngle(D);
  Imaging1.SaveAsTIFF(Dest, 4);
  Imaging1.CloseNativeImage;
rromeijn
 
Posts: 16
Joined: Fri Jun 18, 2010 4:21 pm

Re: Rotateangle and CCITT4

Postby Loïc » Mon Jul 05, 2010 5:40 pm

Hi,

Yes it is a normal way..

Just use:

Code: Select all
Imaging1.CreateImageFromFile(Filename);
D:=-1*Imaging1.GetSkewAngle;
Imaging1.RotateAngle(D);
Imaging1.ConvertTo1Bpp();
Imaging1.SaveAsTIFF(Dest, 4);
Imaging1.CloseNativeImage;


Hope this helps,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron