Reading multipage images

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

Moderators: XnTriq, xnview

Swordsman

Reading multipage images

Post by Swordsman »

I'm just trying to read multipage images like that

Code: Select all

  lpar.ImageWanted:=ind;
  e := gflLoadBitmap(PChar(name), gfl_bmp, lpar, finfo);
  imgType:=finfo.Description;
  NumOfImg:=finfo.NumberOfImages;
But for all images I've got wrong NumOfImg (eg. approx. 8000),
and for truely multipage images it returns real dimensions for
inlay images (in finfo), but gets only first bitmap and also wrong number
of inlays.

Please, help
User avatar
xnview
Author of XnView
Posts: 36798
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Reading multipage images

Post by xnview »

Swordsman wrote:I'm just trying to read multipage images like that

Code: Select all

  lpar.ImageWanted:=ind;
  e := gflLoadBitmap(PChar(name), gfl_bmp, lpar, finfo);
  imgType:=finfo.Description;
  NumOfImg:=finfo.NumberOfImages;
But for all images I've got wrong NumOfImg (eg. approx. 8000),
and for truely multipage images it returns real dimensions for
inlay images (in finfo), but gets only first bitmap and also wrong number
of inlays.
You try on which format?
Pierre.
swordsman

Reading multipage images

Post by swordsman »

I'd tried on multipage ICO.
Thanks, getting any image now working (was my fault), but number of pages is incorrect (around 90000).
I tried it also on ICL - the same thing.
User avatar
xnview
Author of XnView
Posts: 36798
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Reading multipage images

Post by xnview »

swordsman wrote:I'd tried on multipage ICO.
Thanks, getting any image now working (was my fault), but number of pages is incorrect (around 90000).
I tried it also on ICL - the same thing.
Could you send me a sample, please? How many pictures do you have in your .ico?
Pierre.