Click or drag to resize
Ab4d.SharpEngine logo

SpriteBatchSetCoordinateCenter Method

SetCoordinateCenter can set a custom position of a coordinate center. By default the center position is set to TopLeft, but with this method you can set it to any corner or center of the screen. See remarks for more info.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public void SetCoordinateCenter(
	PositionTypes centerPosition
)

Parameters

centerPosition  PositionTypes
new center positions defined as PositionTypes
Remarks

SetCoordinateCenter can set a custom position of a coordinate center.

By default the center position is set to TopLeft, but with this method you can set it to any corner or center of the screen.

This can also change the direction of the horizontal and vertical axis.

When center position is horizontally set to Left or Center, then horizontal axis is pointing to the right. When Right is used, then horizontal axis is pointing to the left (to define the distance from the right border).

When center position is vertically set to Top, then vertical axis is pointing down (distance from the top). When Center or Bottom is used, then vertical axis is pointing Up (distance from the bottom or center).

See Also