FreeImageBitmap.GetEnlargedInstance(T) Method (Int32, Int32, Int32, Int32, Nullable(T))

FreeImage.NET

FreeImageBitmapGetEnlargedInstanceT Method (Int32, Int32, Int32, Int32, NullableT)
Enlarges or shrinks this FreeImageBitmap selectively per side and fills newly added areas with the specified background color returning a new instance. See EnlargeCanvasT(FIBITMAP, Int32, Int32, Int32, Int32, NullableT, FREE_IMAGE_COLOR_OPTIONS) for further details.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public FreeImageBitmap GetEnlargedInstance<T>(
	int left,
	int top,
	int right,
	int bottom,
	Nullable<T> color
)
where T : struct, new()

Parameters

left
Type: SystemInt32
The number of pixels, the image should be enlarged on its left side. Negative values shrink the image on its left side.
top
Type: SystemInt32
The number of pixels, the image should be enlarged on its top side. Negative values shrink the image on its top side.
right
Type: SystemInt32
The number of pixels, the image should be enlarged on its right side. Negative values shrink the image on its right side.
bottom
Type: SystemInt32
The number of pixels, the image should be enlarged on its bottom side. Negative values shrink the image on its bottom side.
color
Type: SystemNullableT
The color, the enlarged sides of the image should be filled with.

Type Parameters

T
The type of the specified color.

Return Value

Type: FreeImageBitmap
The enlarged instance.
See Also