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

◆ bitmap() [8/14]

xtd::drawing::bitmap::bitmap ( std::istream &  stream,
bool  use_icm 
)
explicit

Initializes a new instance of the bitmap class from the specified data stream.

Parameters
streamThe data stream used to load the image.
use_icmtrue to use color correction for this xtd::drawing::bitmap; otherwise, false.
Remarks
You must keep the stream open for the lifetime of the xtd::drawing::bitmap.
Due to a limitation of the GDI+ decoder, an xtd::argument_exception is thrown if you construct a bitmap from a .png image file with a single dimension greater than 65,535 pixels.