Enum TextureCanvas.Anchor
- Namespace
- Stride.CommunityToolkit.Rendering.Utilities
- Assembly
- Stride.CommunityToolkit.dll
Anchor positions when drawing to a TextureCanvas
public enum TextureCanvas.Anchor
Fields
Bottom = 7
Adjust the position so the bottom-edge center of the source and target rect are aligned.
BottomLeft = 6
Adjust the position so the bottom-left corner of the source and target rect are aligned.
BottomRight = 8
Adjust the position so the bottom-right corner of the source and target rect are aligned.
Center = 4
Adjust the position so the center of the source and target rect are aligned.
Left = 3
Adjust the position so the left-edge center of the source and target rect are aligned.
Right = 5
Adjust the position so the right-edge center of the source and target rect are aligned.
Top = 1
Adjust the position so the top-edge center of the source and target rect are aligned.
TopLeft = 0
Adjust the position so the top-left corner of the source and target rect are aligned.
TopRight = 2
Adjust the position so the top-right corner of the source and target rect are aligned.