[]
Stores the image buffer to a byte array (without the palette and metadata information).
public byte[] ToByteArray()
Type | Description |
---|---|
byte[] |
Stores the image buffer to a byte array with the same stride (bytes per row).
public byte[] ToByteArray(out int stride)
Type | Name | Description |
---|---|---|
int | stride | Returns the stride (bytes per row) of the image. |
Type | Description |
---|---|
byte[] |
Stores a part of the image buffer to a byte array.
public byte[] ToByteArray(ImageRect srcRect)
Type | Name | Description |
---|---|---|
ImageRect | srcRect | The source rectangle within the image. |
Type | Description |
---|---|
byte[] |