Loosing quality picture using gflax rotate function

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, helmut, xnview

FredG

Loosing quality picture using gflax rotate function

Post by FredG »

Hello and thanks for all
I use rotate with gflax.It works fine but my dpi goes from 180 to 68 dpi. Is there anyway to keep good quality picture?
here the code:
temp= dir &"/photos/"& right(session("tab("&i&")"),len(session("tab("&i&")"))-InstrRev(session("tab("&i&")") ,"/") )
Myobj1.SaveJPEGQuality = 100
Myobj1.Rotate angle
Myobj1.SaveFormat = 1
Myobj1.SaveJPEGProgressive = True
Myobj1.SaveBitMap temp
set Myobj1=nothing
Thanks
User avatar
xnview
Author of XnView
Posts: 43132
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Loosing quality picture using gflax rotate function

Post by xnview »

FredG wrote:Hello and thanks for all
I use rotate with gflax.It works fine but my dpi goes from 180 to 68 dpi. Is there anyway to keep good quality picture?
here the code:
temp= dir &"/photos/"& right(session("tab("&i&")"),len(session("tab("&i&")"))-InstrRev(session("tab("&i&")") ,"/") )
Myobj1.SaveJPEGQuality = 100
Myobj1.Rotate angle
Myobj1.SaveFormat = 1
Myobj1.SaveJPEGProgressive = True
Myobj1.SaveBitMap temp
set Myobj1=nothing
Thanks
Yes, Rotate is not lossless function
Pierre.
toby

Re: Loosing quality picture using gflax rotate function

Post by toby »

Hello

When I rotate a picture, I get quite a heavy distortion. The
pic is not rectangular anymore. Max distorsion is at 45 degrees.
Has this bug been fixed in 2.40 ? I am currently using 2.27.

Thanks for any help !
Toby
User avatar
xnview
Author of XnView
Posts: 43132
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Loosing quality picture using gflax rotate function

Post by xnview »

toby wrote:Hello

When I rotate a picture, I get quite a heavy distortion. The
pic is not rectangular anymore. Max distorsion is at 45 degrees.
Has this bug been fixed in 2.40 ? I am currently using 2.27.
No, i'll change soon the rotate function.
Pierre.
Toby

Post by Toby »

Hi Pierre

Ok, thanks. By the way: I like GflAx a lot, it's a great piece of software !