System::Drawing::Imaging::BitmapData class

BitmapData class

Represents a set of attributes of a bitmap image. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class BitmapData : public System::Object

Methods

MethodDescription
get_Height() constReturns the height of the image in pixels.
get_PixelFormat() constReturns the pixel format of the bitmap image.
get_Scan0() constReturns the address of the first pixel data in the bitmap.
get_Stride() constReturns the stride width of the image in bytes.
get_Width() constReturns the width of the image in pixels.
set_Height(int)Sets the height of the image in pixels.
set_PixelFormat(PixelFormat)Sets the pixel format of the bitmap image.
set_Scan0(IntPtr)Sets the address of the first pixel data in the bitmap.
set_Stride(int)Sets the stride width of the image in bytes.
set_Width(int)Sets the width of the image in pixels.

See Also