Back to FabImage Library website

You are here: Start » Function Reference » Image » Image Basics » MakeImage

MakeImage


Header: FIL.h
Namespace: fil
Module: FoundationLite

Converts a pixel array to a single-channel image.

Syntax

C++
C#
 
void fil::MakeImage
(
	const ftl::Array<fil::Pixel>& inPixels,
	const int inWidth,
	const int inHeight,
	fil::PlainType::Type inType,
	const int inDepth,
	fil::Image& outImage
)

Parameters

Name Type Range Default Description
Input value
inPixels const Array<Pixel>&
Input value
inWidth const int Output image width
Input value
inHeight const int Output image height
Input value
inType PlainType::Type UInt8 Output image pixel type
Input value
inDepth const int 1 - 4 Output image depth
Output value
outImage Image& Output image

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Errors

List of possible exceptions:

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