Home Cooker Classes Others Rice
Classes  >  bitmap  >  bitmap(string)
bitmap class : bitmap(string) fitter

Description

Get a new instance of bitmap class.

Syntax

new bitmap(string location)

Arguments

ClassNameDescription
stringlocationA location of the image.

Return value

ClassDescription
bitmapA new instance of bitmap class which was initialized.

Sample code

1:

bitmap localBmp = new bitmap("C:\Users\YourName\Documents\img\someimage.png");

2:

bitmap netBmp = new bitmap("http://rice.aki.gs/cooker/img/someimage.png");

Notes

Please specify a location of image by the argument. You can specifiy a file path or url.

An instance returned with this fitter has already been initialized.

Links for reference

None.

Copyright © Rice All rights reserved.