BBjSystemMetrics::getScreenImage

Description

In BBj 15.0 and higher, this BBjSystemMetrics method returns the screen as a BBjImage.

Syntax

Return Value

Method

BBjImage

getScreenImage()

BBjImage

getScreenImage(int x, int y, int width, int height )

Parameters

Variable

Description

x

Horizontal position of the upper-left corner.

y

Vertical position of the upper-left corner.

width

Width of the image.

height

Height of the image.

Return Value

Returns the screen as a BBjImage.

Remarks

None.

Example

rem ' getScreenImage

sysgui = unt

open (sysgui)"X0"

sysgui! = bbjapi().getSysGui()

metrics! = sysgui!.getSystemMetrics()

image! = metrics!.getScreenImage()

image$ = image!.getBytes("png")

image = unt

open (image,mode="O_CREATE,O_TRUNC")"./getScreenImage.png"

writerecord (image)image$

close (image)

end

See Also

BBjAPI

BBjSysGui

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