You are here: Start » AVL.NET » Function Reference » Image » Image Basics » AVL.GetImageData
Extracts the image content (raw pixel data) as a binary buffer.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void GetImageData ( AvlNet.Image inImage, int? inPitch, AvlNet.ByteBuffer outBuffer )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImage | AvlNet.Image | Input image. | |||
inPitch | int? | <0, INF> | Length, in bytes, between starts of consecutive image rows for the resulting data. Default value: atl::NIL. | ||
outBuffer | AvlNet.ByteBuffer |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Pitch value is too small for the source image width and pixel format. |
RuntimeError | Invalid image format in GetImageData. |
RuntimeError | Resulting byte buffer size is too large. |