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

Description

Gets a new instance of the bitmap class from bitmap class.

Syntax

new bitmap(bitmap originalBmp)

Arguments

ClassNameDescription
bitmaporiginalBmpAn instance of bitmap class

Return value

ClassDescription
bitmapA new instance of bitmap class which was initialized.

Sample code

1:

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

2:

bitmap newBmp = new bitmap(originalBmp);

Notes

Please note that the instance of the argument and the instance returned from the fitter are independent instances. In other words, this fitter works as a clone operation.

Links for reference

None.

Copyright © Rice All rights reserved.