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

◆ from_stream()

static image xtd::drawing::image::from_stream ( std::istream &  stream)
static

Creates an xtd::drawing::image from the specified data stream.

Parameters
streamA std::istream that contains the data for this xtd::drawing::image.
Returns
The xtd::drawing::image this method creates.
Remarks
You must keep the stream open for the lifetime of the xtd::drawing::image.
Note
The xtd::drawing::image class does not support alpha transparency in bitmaps. To enable alpha transparency, use PNG images with 32 bits per pixel.