DX9ToolsR4 - Created by: X | |
GeneralHelpers.UVFromRectangle Method (SizeF, RectangleF)
Converts a rectangle into an array of 4 texture coordanants.
[Visual Basic]Overloads Public Shared Function UVFromRectangle( _
ByVal
ImageSize As
SizeF, _
ByVal
R As
RectangleF _
) As
Vector2() 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