Enlarges or shrinks this FreeImageBitmap selectively per side and fills newly added areas with the specified background color returning a new instance. See EnlargeCanvas<(Of <(T>)>)(FIBITMAP, Int32, Int32, Int32, Int32, Nullable<(Of <(T>)>), FREE_IMAGE_COLOR_OPTIONS) for further details.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public FreeImageBitmap GetEnlargedInstance<T>(
	int left,
	int top,
	int right,
	int bottom,
	Nullable<T> color
)
where T : struct, new()
Visual Basic (Declaration)
Public Function GetEnlargedInstance(Of T As {Structure, New}) ( _
	left As Integer, _
	top As Integer, _
	right As Integer, _
	bottom As Integer, _
	color As Nullable(Of T) _
) As FreeImageBitmap
Visual C++
public:
generic<typename T>
where T : value class, gcnew()
FreeImageBitmap^ GetEnlargedInstance(
	int left, 
	int top, 
	int right, 
	int bottom, 
	Nullable<T> color
)

Parameters

left
Type: System..::.Int32
The number of pixels, the image should be enlarged on its left side. Negative values shrink the image on its left side.
top
Type: System..::.Int32
The number of pixels, the image should be enlarged on its top side. Negative values shrink the image on its top side.
right
Type: System..::.Int32
The number of pixels, the image should be enlarged on its right side. Negative values shrink the image on its right side.
bottom
Type: System..::.Int32
The number of pixels, the image should be enlarged on its bottom side. Negative values shrink the image on its bottom side.
color
Type: System..::.Nullable<(Of <(T>)>)
The color, the enlarged sides of the image should be filled with.

Type Parameters

T
The type of the specified color.

Return Value

The enlarged instance.

Version Information

FreeImage.NET

Supported in: 3.13.0, 3.13.1

See Also