Click or drag to resize
Image Constructor (Texture2D, NullableVector2, ImageDrawMode, Anchor, NullableVector2)
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,
	Nullable<Vector2> size = null,
	ImageDrawMode drawMode = ImageDrawMode.Stretch,
	Anchor anchor = Anchor.Auto,
	Nullable<Vector2> offset = null
)

Parameters

texture
Type: Texture2D
Image texture.
size (Optional)
Type: SystemNullableVector2
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