RectHelper.FromCoordinatesAndDimensions 메서드

정의

Rect 구조체의 요소 값을 기반으로 새 Rect 값을 만듭니다. C# 및 Microsoft Visual Basic 코드는 Rect(Double, Double, Double, Double) 생성자를 대신 사용해야 합니다.

public:
 static Rect FromCoordinatesAndDimensions(float x, float y, float width, float height);
 static Rect FromCoordinatesAndDimensions(float const& x, float const& y, float const& width, float const& height);
public static Rect FromCoordinatesAndDimensions(float x, float y, float width, float height);
function fromCoordinatesAndDimensions(x, y, width, height)
Public Shared Function FromCoordinatesAndDimensions (x As Single, y As Single, width As Single, height As Single) As Rect

매개 변수

x
Single

float

X에 대해 설정할 픽셀 값입니다.

y
Single

float

Y에 설정할 픽셀 값입니다.

width
Single

float

Width에 설정할 픽셀 값입니다.

height
Single

float

Height에 설정할 픽셀 값 입니다.

반환

만든 Rect입니다.

적용 대상