DX9ToolsR4 - Created by: X

GeneralHelpers.UVFromRectangle Method (Size, RectangleF)

Converts a rectangle into an array of 4 texture coordanants.

[Visual Basic]
Overloads Public Shared Function UVFromRectangle( _
   ByVal ImageSize As Size, _
   ByVal R As RectangleF _
) As Vector2()
[C#]
public static Vector2[] UVFromRectangle(
   Size ImageSize,
   RectangleF R
);

Parameters

ImageSize
The size of the image.
R
The source rectangle to convert.

Return Value

Returns an array of 4 Vector2 types representing the converted values.

See Also

GeneralHelpers Class | CBX.Libs.DX9ToolsR4 Namespace | GeneralHelpers.UVFromRectangle Overload List