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
Set Resolution
Moderator: xnview
-
xnview
- Author of XnView
- Posts: 47277
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Set Resolution
GIF doesn't store DPI infotailormade 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
Pierre.