Rotate(1) add a bottom black line

Discussions about document viewing.
Post Reply
gesteam
Posts: 8
Joined: Mon Mar 02, 2009 3:57 pm

Rotate(1) add a bottom black line

Post by gesteam » Wed Mar 04, 2009 11:09 am

Hi,

I open a file(eurotext.tif of exemples) in gdViewer.
I applie a rotation of 90° with rotate(1) : a black line of 7 pixels is added at the bottom of the picture.
If you rotate(1) 4 times, you get a perfect 7 pixels border ! :D

pictureHdle = oGdViewer.GetNativeImage
oImaging.SetNativeImage pictureHdle
status = oImaging.Rotate(1)
status = oImaging.Rotate(1)
status = oImaging.Rotate(1)
status = oImaging.Rotate(1)
status = oGdViewer.Redraw

Best regards

Thierry
Gesteam

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

Re: Rotate(1) add a bottom black line

Post by Loïc » Thu Mar 05, 2009 8:18 am

Hi,

This bug is already known. If you are using GdPicture Pro a workaround consists to convert to image to 24bpp before applying the rotation.

I'll try to fix this problem for the next releases.

Best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest