Home Notices Documents Classes Download Others Rice
Classes  >  browser  >  GetBitmap(int,int,int,int)
browser class : GetBitmap(int,int,int,int) method

Description

Cuts out a part of the page's image.

Syntax

browserInstance.GetBitmap(int left, int top, int width, int height)

Arguments

ClassNameDescription
intleftDistance between the left edge of the page and the cutting start position.
inttopDistance between the upper edge of the page and the cutting start position.
intwidthWidth of the image that will be cut out.
intheightHeight of the image that will be cut out.

Return value

ClassDescription
bitmapAn image that was cut out.

Sample code

1:

browser b = new browser();

2:

bitmap cutImage = b.GetBitmap(100, 100, 100, 100);

Notes

If any of the arguments is less than zero or exceeds the range of the page, an UnknownException ( ArgumentOutOfRangeException ) will be thrown.

Links for reference

None.

Copyright © Rice All rights reserved.