Page 1 of 1

Reading multipage images

Posted: Mon Feb 21, 2005 1:23 pm
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

Re: Reading multipage images

Posted: Tue Feb 22, 2005 9:44 am
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?

Reading multipage images

Posted: Thu Feb 24, 2005 10:20 am
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.

Re: Reading multipage images

Posted: Fri Feb 25, 2005 8:14 am
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?