Allocate new image in unmanaged memory.
Namespace:
AForge.ImagingAssembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
| C# |
|---|
public static UnmanagedImage Create( int width, int height, PixelFormat pixelFormat ) |
Parameters
- width
- Type: System..::.Int32
Image width.
- height
- Type: System..::.Int32
Image height.
- pixelFormat
- Type: System.Drawing.Imaging..::.PixelFormat
Image pixel format.
Return Value
Return image allocated in unmanaged memory.
Remarks
Allocate new image with specified attributes in unmanaged memory.
Exceptions
| Exception | Condition |
|---|---|
| AForge.Imaging..::.UnsupportedImageFormatException | Unsupported pixel format was specified. |
| AForge.Imaging..::.InvalidImagePropertiesException | Invalid image size was specified. |