Forms a border around the image
            
 
    Namespace: 
   OpenCvSharp
    Assembly:
   OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
 Syntax
Syntaxpublic Mat CopyMakeBorder(
	int top,
	int bottom,
	int left,
	int right,
	BorderTypes borderType,
	Nullable<Scalar> value = null
)
Public Function CopyMakeBorder ( 
	top As Integer,
	bottom As Integer,
	left As Integer,
	right As Integer,
	borderType As BorderTypes,
	Optional value As Nullable(Of Scalar) = Nothing
) As Mat
public:
Mat^ CopyMakeBorder(
	int top, 
	int bottom, 
	int left, 
	int right, 
	BorderTypes borderType, 
	Nullable<Scalar> value = nullptr
)
member CopyMakeBorder : 
        top : int * 
        bottom : int * 
        left : int * 
        right : int * 
        borderType : BorderTypes * 
        ?value : Nullable<Scalar> 
(* Defaults:
        let _value = defaultArg value null
*)
-> Mat 
function CopyMakeBorder(top, bottom, left, right, borderType, value);
Parameters
- top
- Type: SystemInt32
 Specify how much pixels in each direction from the source image rectangle one needs to extrapolate
- bottom
- Type: SystemInt32
 Specify how much pixels in each direction from the source image rectangle one needs to extrapolate
- left
- Type: SystemInt32
 Specify how much pixels in each direction from the source image rectangle one needs to extrapolate
- right
- Type: SystemInt32
 Specify how much pixels in each direction from the source image rectangle one needs to extrapolate
- borderType
- Type: OpenCvSharpBorderTypes
 The border type
- value (Optional)
- Type: SystemNullableScalar
 The border value if borderType == Constant
Return Value
Type: 
Mat See Also
See Also