Click or drag to resize
DrawUtils Class
Helper class with drawing-related functionality.
Inheritance Hierarchy
SystemObject
  GeonBit.UIDrawUtils

Namespace:  GeonBit.UI
Assembly:  GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class DrawUtils

The DrawUtils type exposes the following members.

Constructors
  NameDescription
Public methodDrawUtils
Initializes a new instance of the DrawUtils class
Top
Methods
  NameDescription
Public methodDrawImage
Draw a simple image with texture and destination rectangle. This function will stretch the texture to fit the destination rect.
Public methodDrawSurface
Draw a tiled texture with frame on destination rectangle. This function will draw repeating frame parts + tile center parts to cover destination rect.
Public methodDrawSurfaceHorizontal
Just like DrawSurface, but will stretch texture on Y axis.
Public methodDrawSurfaceVertical
Just like DrawSurface, but will stretch texture on X axis.
Public methodEndDraw
Finish drawing on a given SpriteBatch
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFixColorOpacity(Color)
Fix RGB based on Alpha channel.
Public methodFixColorOpacity(NullableColor)
Set default color to white and fix RGB based on Alpha channel.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodPopRenderTarget
Pop a render target from the render targets stack.
Public methodPushRenderTarget
Add a render target to the render targets stack.
Public methodScaleRect
Scale a rectangle by given factor
Public methodStartDraw
Start drawing on a given SpriteBatch.
Public methodStartDrawSilhouette
Start drawing on a given SpriteBatch, but only draw colored Silhouette of the texture.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also