Back to Aurora Vision Library Lite website

You are here: Start » Image » Image Spatial Transforms » UncropImage

UncropImage


Header: AVL.h
Namespace: avl

Inverse of CropImage.

Syntax

void avl::UncropImage
(
	const avl::Image& inImage,
	const avl::Box& inSelection,
	int inWidth,
	int inHeight,
	avl::Image& outImage
)

Parameters

Name Type Range Default Description
Input value inImage const Image& Input image
Input value inSelection const Box& The same value as in CropImage
Input value inWidth int 0 - Width of the original image
Input value inHeight int 0 - Height of the original image
Output value outImage Image& Output image

Description

Inverse of CropImage. Can create borders around original image e.g. passing x:50 y:50 will create new image with filled 50 pixels on top and 50 on left of the original image. inWidth and inHeight specifies the new image dimensions, Width and Height from inSelection property are not used.

Examples

inSelection property Preview
origin in x:0 y:0
origin in x:50 y:50

See Also

  • CropImage – Creates an image from a box-shaped fragment of the input image (with margins if requested).