Back to FabImage Library website

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

SetImageColumn


Header: FIL.h
Namespace: fil
Module: FoundationLite

Sets pixel values in a single entire column of an image.

Applications: Allows for creating images from calculated real values. It is significantly slower than SetImageRow.

Syntax

C++
C#
 
void fil::SetImageColumn
(
	fil::Image& ioImage,
	ftl::Optional<int> inChannelIndex,
	const int inColumnIndex,
	const ftl::Array<float>& inValues
)

Parameters

Name Type Range Default Description
Input will be modified ioImage Image&
Input value inChannelIndex Optional<int> 0 - 3 NIL Selects a channel of the input image
Input value inColumnIndex const int 0 - 65535 Selects a column of the input image
Input value inValues const Array<float>& New values for specified column

Errors

List of possible exceptions:

Error type Description
DomainError Channel index out of range in SetImageColumn.
DomainError Column index out of range in SetImageColumn.
DomainError Size of inValues array and image height are not equal in SetImageColumn.