Page 1 of 1

Set Resolution

Posted: Fri Nov 03, 2006 7:33 pm
by tailormade
I am using:

bitmap->Xdpi = Resolution;
bitmap->Ydpi = Resolution;

GFL_ERROR err = gflSaveBitmap( outf, bitmap, &saveparams);

to set the X and Y Resolution and then save the file. It works fine for JPEG, but for GIF I always get horizontal resolution of 384 dpi and vertical resolution of 96 dpi.

Any idea why? I have tried both V2.4 and 2.54.

Scott

Re: Set Resolution

Posted: Tue Dec 12, 2006 1:20 pm
by xnview
tailormade wrote:I am using:

bitmap->Xdpi = Resolution;
bitmap->Ydpi = Resolution;

GFL_ERROR err = gflSaveBitmap( outf, bitmap, &saveparams);

to set the X and Y Resolution and then save the file. It works fine for JPEG, but for GIF I always get horizontal resolution of 384 dpi and vertical resolution of 96 dpi.

Any idea why? I have tried both V2.4 and 2.54.

Scott
GIF doesn't store DPI info