GdPicture Rotation
GdPicture Rotation
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.
Re: GdPicture Rotation
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
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
Re: GdPicture Rotation
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?
Re: GdPicture Rotation
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:
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()
Who is online
Users browsing this forum: No registered users and 0 guests