DrawUtils.DrawSurfaceVertical Method

GeonBit.UI

DrawUtilsDrawSurfaceVertical Method
Just like DrawSurface, but will stretch texture on X axis.

Namespace:  GeonBit.UI
Assembly:  GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public virtual void DrawSurfaceVertical(
	SpriteBatch spriteBatch,
	Texture2D texture,
	Rectangle destination,
	float frameWidth,
	Nullable<Color> color = null,
	float frameScale = 1f
)

Parameters

spriteBatch
Type: SpriteBatch
SpriteBatch to draw on.
texture
Type: Texture2D
Texture to draw.
destination
Type: Rectangle
Destination rectangle.
frameWidth
Type: SystemSingle
Frame width in percents relative to texture file size. For example, 0.1 means the frame takes 10% of the texture file.
color (Optional)
Type: SystemNullableColor
Optional tint color to draw texture with.
frameScale (Optional)
Type: SystemSingle
Optional scale for the frame part.
See Also