DrawUtils Methods |
The DrawUtils type exposes the following members.
Name | Description | |
---|---|---|
DrawImage |
Draw a simple image with texture and destination rectangle.
This function will stretch the texture to fit the destination rect.
| |
DrawSurface |
Draw a tiled texture with frame on destination rectangle.
This function will draw repeating frame parts + tile center parts to cover destination rect.
| |
DrawSurfaceHorizontal |
Just like DrawSurface, but will stretch texture on Y axis.
| |
DrawSurfaceVertical |
Just like DrawSurface, but will stretch texture on X axis.
| |
EndDraw |
Finish drawing on a given SpriteBatch
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
FixColorOpacity(Color) |
Fix RGB based on Alpha channel.
| |
FixColorOpacity(NullableColor) |
Set default color to white and fix RGB based on Alpha channel.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
PopRenderTarget |
Pop a render target from the render targets stack.
| |
PushRenderTarget |
Add a render target to the render targets stack.
| |
ScaleRect |
Scale a rectangle by given factor
| |
StartDraw |
Start drawing on a given SpriteBatch.
| |
StartDrawSilhouette |
Start drawing on a given SpriteBatch, but only draw colored Silhouette of the texture.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |