Copy a sub part of the current dib image.

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

Syntax

C#
public static FIBITMAP Copy(
	FIBITMAP dib,
	int left,
	int top,
	int right,
	int bottom
)
Visual Basic (Declaration)
Public Shared Function Copy ( _
	dib As FIBITMAP, _
	left As Integer, _
	top As Integer, _
	right As Integer, _
	bottom As Integer _
) As FIBITMAP
Visual C++
public:
static FIBITMAP Copy(
	FIBITMAP dib, 
	int left, 
	int top, 
	int right, 
	int bottom
)

Parameters

dib
Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
left
Type: System..::.Int32
Specifies the left position of the cropped rectangle.
top
Type: System..::.Int32
Specifies the top position of the cropped rectangle.
right
Type: System..::.Int32
Specifies the right position of the cropped rectangle.
bottom
Type: System..::.Int32
Specifies the bottom position of the cropped rectangle.

Return Value

Handle to a FreeImage bitmap.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also