[]
Stores the image buffer to a byte array (without the palette and metadata information).
public byte[] ToByteArray()
Public Function ToByteArray() As Byte()
Type | Description |
---|---|
byte[] |
Stores the image buffer to a byte array with the same stride (bytes per row).
public byte[] ToByteArray(out int stride)
Public Function ToByteArray(ByRef stride As Integer) As Byte()
Type | Name | Description |
---|---|---|
int | stride | Returns the stride (bytes per row) of the image. |
Type | Description |
---|---|
byte[] |
Stores a rectangular area of the image to a byte array.
public byte[] ToByteArray(Rectangle srcRect)
Public Function ToByteArray(srcRect As Rectangle) As Byte()
Type | Name | Description |
---|---|---|
Rectangle | srcRect | The source rectangle within the image. |
Type | Description |
---|---|
byte[] |