CvArrCopyMakeBorder Method (CvArr, CvPoint, BorderType, CvScalar) OpenCvSharp Class Library
Copies image and makes border around it.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public void CopyMakeBorder(
	CvArr dst,
	CvPoint offset,
	BorderType bordertype,
	CvScalar value
)

Parameters

dst
Type: OpenCvSharpCvArr
The destination image.
offset
Type: OpenCvSharpCvPoint
Coordinates of the top-left corner (or bottom-left in case of images with bottom-left origin) of the destination image rectangle where the source image (or its ROI) is copied. Size of the rectanlge matches the source image size/ROI size.
bordertype
Type: OpenCvSharpBorderType
Type of the border to create around the copied source image rectangle.
value
Type: OpenCvSharpCvScalar
Value of the border pixels if bordertype=IPL_BORDER_CONSTANT.
See Also

Reference