Dela via


AIVisionFaceModelFactory.FaceRectangle(Int32, Int32, Int32, Int32) Method

Definition

Initializes a new instance of FaceRectangle.

public static Azure.AI.Vision.Face.FaceRectangle FaceRectangle (int top = 0, int left = 0, int width = 0, int height = 0);
static member FaceRectangle : int * int * int * int -> Azure.AI.Vision.Face.FaceRectangle
Public Shared Function FaceRectangle (Optional top As Integer = 0, Optional left As Integer = 0, Optional width As Integer = 0, Optional height As Integer = 0) As FaceRectangle

Parameters

top
Int32

The distance from the top edge if the image to the top edge of the rectangle, in pixels.

left
Int32

The distance from the left edge if the image to the left edge of the rectangle, in pixels.

width
Int32

The width of the rectangle, in pixels.

height
Int32

The height of the rectangle, in pixels.

Returns

A new FaceRectangle instance for mocking.

Applies to