Back to FabImage Library website

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

GetImagePixel


Header: FIL.h
Namespace: fil
Module: FoundationLite

Returns a single pixel of an image.

Syntax

C++
C#
 
void fil::GetImagePixel
(
	const fil::Image& inImage,
	const fil::Location& inLocation,
	fil::Pixel& outPixel,
	float& outValue
)

Parameters

Name Type Default Description
Input value
inImage const Image& Input image
Input value
inLocation const Location& Location of the pixel to be accessed
Output value
outPixel Pixel& Output pixel
Output value
outValue float& Average pixel value

Errors

List of possible exceptions:

Error type Description
DomainError Input location exceeds dimensions of an input image in GetImagePixel.