Page 1 of 1

GFlAx and multipage TIF

Posted: Fri Mar 18, 2011 1:02 pm
by lopatin
Hi,
I am trying to use GFlAx with powerbuilder application.
It worked fine, but I don't understatnd how to read different pages inside multipage TIF file. Is it possible with GFlAx?

I use the following code to read single-page image:

Code: Select all

oleobject iole_Gflax
blob iblb_Image

iole_Gflax	= Create oleObject
iole_Gflax.connectToNewObject("GFLAX.GFLAX")
iole_gflax.function loadbitmap('C:\sample_image.tif')
iblb_Image = iole_gflax.function SendBinary()
Please advise , how to read particular page in tif?

Re: GFlAx and multipage TIF

Posted: Fri Mar 18, 2011 2:48 pm
by xnview
you have gflax.Page to change it

Re: GFlAx and multipage TIF

Posted: Fri Mar 18, 2011 2:53 pm
by lopatin
Thank you very much for your support.

I am unsure when to use "gflax.Page = x" instruction. Before loadbitmap() ? Before SendBinary() ?

Re: GFlAx and multipage TIF

Posted: Fri Mar 18, 2011 2:53 pm
by xnview
before loadbitmap()

Re: GFlAx and multipage TIF

Posted: Fri Mar 18, 2011 3:51 pm
by lopatin
Thank you , it works !

Re: GFlAx and multipage TIF

Posted: Tue Mar 22, 2011 1:36 pm
by lopatin
I have another trouble with mulipage tiffs. I use method described in this topic to view particular pages in a picture control :
With GFLAx I save paticular page to new file, next
I open the file in my picture control
View works OK.

But when I am trying to print image ( or print preview ), I see a blank page. Nothing is printed or previewed.
The same effect is present if I use xnView to save one page into separate file and play with in in my program.

Have you faced with such issues in your practice ?
May be I omit something in GFLAx during saving ?