GdPicture Rotation

Discussions about image processing and document imaging.
Post Reply
eharvey
Posts: 8
Joined: Sat Mar 21, 2009 4:26 pm

GdPicture Rotation

Post by eharvey » Sat Mar 21, 2009 8:38 pm

I have an issue in 6.1.0.11 where rotating an image in a multipage tiff causes the image file size to increase dramatically. I had a 9 image multipage tiff that was saved as a pdf. Without using rotation, the file size was 534k. By rotating three pages the file size jumped to 1910k.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: GdPicture Rotation

Post by Loïc » Sun Mar 22, 2009 11:17 am

Hi,

This problem will be fixed for the next release.

If the issue is urgent, a workaround consists to convert the image as 1bpp before saving it.

Best regards,

Loïc

thowle
Posts: 24
Joined: Thu Jul 30, 2009 1:56 am

Re: GdPicture Rotation

Post by thowle » Thu Jul 30, 2009 10:37 pm

How exactly did you save the rotation to the multipage tiff? I can rotate fro mthe viewer object, but can't find how to save that back to the image?

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: GdPicture Rotation

Post by Loïc » Mon Aug 03, 2009 5:26 am

You need to open the multipage tiff using a GdPictureImaging object to be able to save the file.

Here a part of the documentation explaining how to display a file opened by a GdPictureImaging object into a GdViewer object:
5. Displaying a GdPicture Image handled by a GdPictureImaging object to a GdViewer object.



The GdPictureImaging class can create GdPicture Image from file, memory RAW, scanner...

If you want to display in real time a GdPicture Image handled by a GdPictureImaging object you can use the DisplayFromGdPictureImage method of the GdViewer class.



VB.NET example:



This example assumes you already have a GdPictureImaging object named oGdPictureImaging and a GdViewer object drawn on your form named GdViewer1.



Dim ImageID As Integer = oGdPictureImaging.CreateImageFromFile("c:\test.jpg")

GdViewer1.DisplayFromGdPictureImage(ImageID)



If later in your code, you want to draw something on the image (like text) and display the modification without reloading the image you can do:



oGdPictureImaging.DrawText(ImageID, "hello Word!", 50, 50, 10, FontStyle.FontStyleBold, Color.Red, "Arial", True)

GdViewer1.Refresh()

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests