GFlAx and multipage TIF

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

Moderators: XnTriq, helmut, xnview

lopatin
Posts: 4
Joined: Fri Mar 18, 2011 12:08 pm

GFlAx and multipage TIF

Post 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?
User avatar
xnview
Author of XnView
Posts: 44746
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: GFlAx and multipage TIF

Post by xnview »

you have gflax.Page to change it
Pierre.
lopatin
Posts: 4
Joined: Fri Mar 18, 2011 12:08 pm

Re: GFlAx and multipage TIF

Post by lopatin »

Thank you very much for your support.

I am unsure when to use "gflax.Page = x" instruction. Before loadbitmap() ? Before SendBinary() ?
User avatar
xnview
Author of XnView
Posts: 44746
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: GFlAx and multipage TIF

Post by xnview »

before loadbitmap()
Pierre.
lopatin
Posts: 4
Joined: Fri Mar 18, 2011 12:08 pm

Re: GFlAx and multipage TIF

Post by lopatin »

Thank you , it works !
lopatin
Posts: 4
Joined: Fri Mar 18, 2011 12:08 pm

Re: GFlAx and multipage TIF

Post 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 ?