CvCopyMakeBorder Method (CvArr, CvArr, CvPoint, BorderType) 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 static void CopyMakeBorder(
	CvArr src,
	CvArr dst,
	CvPoint offset,
	BorderType bordertype
)

Parameters

src
Type: OpenCvSharpCvArr
The source image.
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.
See Also

Reference