[]
        
(Showing Draft Content)

C1.Win.Bitmap.C1Bitmap.ToByteArray

ToByteArray Method

ToByteArray()

Stores the image buffer to a byte array (without the palette and metadata information).

Declaration
public byte[] ToByteArray()
Returns
Type Description
byte[]

ToByteArray(out int)

Stores the image buffer to a byte array with the same stride (bytes per row).

Declaration
public byte[] ToByteArray(out int stride)
Parameters
Type Name Description
int stride

Returns the stride (bytes per row) of the image.

Returns
Type Description
byte[]

ToByteArray(ImageRect)

Stores a part of the image buffer to a byte array.

Declaration
public byte[] ToByteArray(ImageRect srcRect)
Parameters
Type Name Description
ImageRect srcRect

The source rectangle within the image.

Returns
Type Description
byte[]