[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.Windows.GcWicBitmap.ToByteArray

ToByteArray Method

ToByteArray()

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

Declaration
public byte[] ToByteArray()
Public Function ToByteArray() As Byte()
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)
Public Function ToByteArray(ByRef stride As Integer) As Byte()
Parameters
Type Name Description
int stride

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

Returns
Type Description
byte[]

ToByteArray(Rectangle)

Stores a rectangular area of the image to a byte array.

Declaration
public byte[] ToByteArray(Rectangle srcRect)
Public Function ToByteArray(srcRect As Rectangle) As Byte()
Parameters
Type Name Description
Rectangle srcRect

The source rectangle within the image.

Returns
Type Description
byte[]