xtd 0.2.0
Loading...
Searching...
No Matches

◆ bitmap() [6/14]

xtd::drawing::bitmap::bitmap ( const xtd::string filename,
bool  use_icm 
)
explicit

Initializes a new instance of the bitmap class from the specified file.

Parameters
filenameThe bitmap file name and path.
use_icmtrue to use color correction for this xtd::drawing::bitmap; otherwise, false.
Remarks
The file name and path can be relative to the application or an absolute path. Use this constructor to open images with the following file formats: BMP, GIF, EXIF, JPG, PNG and TIFF. For more information about supported formats, see Types of Bitmaps. The file remains locked until the xtd::drawing::bitmap is disposed.