Bitmap()

Bitmap::Bitmap(const SharedPtr<Image>&) constructor

Constructs a new Bitmap object from the specified existing image.

System::Drawing::Bitmap::Bitmap(const SharedPtr<Image> &original)

Arguments

ParameterTypeDescription
originalconst SharedPtr<Image>&The existing image to create the bitmap image from

Bitmap::Bitmap(const SharedPtr<System::IO::Stream>&, bool) constructor

Constructs a new Bitmap object from the specified stream.

System::Drawing::Bitmap::Bitmap(const SharedPtr<System::IO::Stream> &stream, bool useIcm=false)

Arguments

ParameterTypeDescription
streamconst SharedPtr<System::IO::Stream>&A stream that contains image data
useIcmboolIGNORED

Bitmap::Bitmap(const String&) constructor

Constructs a new Bitmap object from the specified file.

System::Drawing::Bitmap::Bitmap(const String &filename)

Arguments

ParameterTypeDescription
filenameconst String&A name of the file that contains image data

Bitmap::Bitmap(const String&, bool) constructor

Constructs a new Bitmap object from the specified file.

System::Drawing::Bitmap::Bitmap(const String &filename, bool useIcm)

Arguments

ParameterTypeDescription
filenameconst String&A name of the file that contains image data
useIcmboolIGNORED

Bitmap::Bitmap(int, int, Imaging::PixelFormat) constructor

Constructs a new Bitmap object that represents a bitmap image with the specified width, height, pixel format and pixel data.

System::Drawing::Bitmap::Bitmap(int width, int height, Imaging::PixelFormat format=Imaging::PixelFormat::Format32bppArgb)

Arguments

ParameterTypeDescription
widthintThe width of the image
heightintThe height of the image
formatImaging::PixelFormatThe pixel format of the image

Bitmap::Bitmap(const SharedPtr<Image>&, const Size&) constructor

Constructs a new Bitmap object from the specified existing image, scaled to the specified size.

System::Drawing::Bitmap::Bitmap(const SharedPtr<Image> &original, const Size &size)

Arguments

ParameterTypeDescription
originalconst SharedPtr<Image>&The existing image to create the bitmap image from
sizeconst Size&The size of the new image

Bitmap::Bitmap(const SharedPtr<Image>&, int, int) constructor

Constructs a new Bitmap object from the specified existing image with width and height scaled to the specified values.

System::Drawing::Bitmap::Bitmap(const SharedPtr<Image> &original, int width, int height)

Arguments

ParameterTypeDescription
originalconst SharedPtr<Image>&The existing image to create the bitmap image from
widthintWidth of the new image
heightintHeight of the new image

See Also