BBjHtmlView::getImage

Description

In BBj 16.0 and higher, this method returns a BBjImage corresponding to the contents of a BBjHtmlView control.

Syntax

Return Value

Method

BBjImage

getImage()

Parameters

None.

Return Value

Returns a BBjImage corresponding to the contents of the BBjHtmlView control.

Remarks

This method is only supported in the JAVAFX_HTMLVIEW version of this control.  It can take a significant amount of time for a page to be fully rendered.  For best results, this method should be invoked from an event handler for the ON_PAGE_LOADED event.

Example

rem ' BBjHtmlView::getImage
print stbl("!OPTIONS","JAVAFX_HTMLVIEW=TRUE")
url$ = "http://www.basis.com/"
print 'hide',
sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
if len(cvs(argv(1,err=*next),8)) then goto client
window! = sysgui!.addWindow(32768,32768,1000,600,"",$00000010$)
htmlview! = window!.addHtmlView(101,0,0,1000,600,"")
htmlview!.setUrl(url$)
htmlview!.setCallback(htmlview!.ON_PAGE_LOADED,"ready")
mdi! = bbjapi().getMDI()
mdi!.createMDIWindow(50,50,1000,600,url$,$00010003$)
mdi!.setCallback(mdi!.ON_CLOSE,"eoj")
invoke = scall("bbj "+pgm(-1)+" - client &")
invoke = scall("bbj "+pgm(-1)+" - client &")
invoke = scall("bbj "+pgm(-1)+" - client &")
invoke = scall("bbj "+pgm(-1)+" - client &")
process_events
eoj:
release
ready:
image! = htmlview!.getImage()
mdi!.setBackgroundImage(BBjMDI.CENTER,image!)
return
client:
title$ = "mdi"
window! = sysgui!.addWindow(rnd(600),rnd(300),100,100,title$,$00090003$,$$)
window!.setCallback(window!.ON_CLOSE,"eoj")
process_events

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.