Back to FabImage Library website
You are here: Start » Function Reference » Image » Image Spatial Transforms » UncropImage
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Inverse of CropImage.
Syntax
C++
C#
void fil::UncropImage ( const fil::Image& inImage, const fil::Box& inSelection, int inWidth, int inHeight, fil::Image& outImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inImage | const Image& | Input image | ||
![]() |
inSelection | const Box& | The same value as in CropImage | ||
![]() |
inWidth | int | 0 - ![]() |
Width of the original image | |
![]() |
inHeight | int | 0 - ![]() |
Height of the original image | |
![]() |
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).