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

Description

Cuts out a part of the page's image.

Syntax

browserInstance.GetBitmap(int width, int height)

Arguments

ClassNameDescription
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);

Notes

Start position of cutting is the upper left corner of the page.

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.