Back to FabImage Library website

You are here: Start » Function Reference » Image Spatial Transforms » TranslateImage

TranslateImage


Header:FIL.h
Namespace:fil

Translates an image by a vector, without changing its dimensions.

Syntax

C++
C#
 
void fil::TranslateImage
(
	const fil::Image& inImage,
	const fil::Pixel& inBorder,
	int inDeltaX,
	int inDeltaY,
	bool inInverse,
	fil::Image& outImage
)

Parameters

Name Type Default Description
inImage const Image& Input image
inBorder const Pixel& Color used to fill pixels outside of the translated image
inDeltaX int Horizontal shift
inDeltaY int Vertical shift
inInverse bool Switches to the inverse operation
outImage Image& Output image

Examples

TranslateImage performed on the sample image.