You are here: Start » AVL.NET » AVL.MakeImage Method

AVL.MakeImage Method

Converts a pixel array to a single-channel image.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void MakeImage(
	AvlNet.Pixel[] inPixels,
	int inWidth,
	int inHeight,
	AvlNet.PlainType inType,
	int inDepth,
	out AvlNet.Image outImage
)

Parameters

Name Type Range Default Description
inPixelsAvlNet.Pixel
inWidthintOutput image width.
inHeightintOutput image height.
inTypeAvlNet.PlainTypeUInt8Output image pixel type. Default value: UInt8.
inDepthint<1, 4>Output image depth.
outImageAvlNet.ImageOutput image.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Hardware acceleration settings may be manipulated with Settings class.

Errors

Error type Description
DomainError Incorrect array size in MakeImage.
DomainError Not supported image type in MakeImage.

See also