Image Constructor

GeonBit.UI

Image Constructor
Create the new image entity.

Namespace:  GeonBit.UI.Entities
Assembly:  GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public Image(
	Texture2D texture,
	Vector2 size,
	ImageDrawMode drawMode = ImageDrawMode.Stretch,
	Anchor anchor = Anchor.Auto,
	Nullable<Vector2> offset = null
)

Parameters

texture
Type: Texture2D
Image texture.
size
Type: Vector2
Image size.
drawMode (Optional)
Type: GeonBit.UI.EntitiesImageDrawMode
How to draw the image (see ImageDrawMode for more info).
anchor (Optional)
Type: GeonBit.UI.EntitiesAnchor
Poisition anchor.
offset (Optional)
Type: SystemNullableVector2
Offset from anchor position.
See Also