Home News DOC Class DL Others Rice
Class  >  bitmap  >  Save(string)
bitmap class : Save(string) method

Description

Saves to the file.

Syntax

instance.Save(string path)

Arguments

None.

ClassNameDescription
stringpathA file path.

Return value

None.

Sample code

1:

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

2:

bmp.Save("C:\Users\YourName\Documents\img\someimage.bmp");

Notes

Supported format are the Bitmap, Gif, Jpeg, and Png.

The format is automatically determined from the file extension.

If the format can not determine from the file extension, an exception, RtypeException, will be thrown.

Links for reference

None.

Copyright © Rice All rights reserved.