Свойство | Type | Description | |
---|---|---|---|
BLeft | |||
CLeft | |||
LeftPadding | int | ||
TCenter_Scale | |||
TLeft | |||
Width | int |
Méthode | Description | |
---|---|---|
Calculate ( float X, float Y, int LeftPadding, int RightPadding, int TopPadding, int BottomPadding ) : void |
Calculates 9 patches of texture (from: http://gamedev.stackexchange.com/questions/115684/monogame-scale-resizing-texture-without-stretching-the-borders)
|
|
NineSlicer ( |
Constructs a new NineSlicer instance.
|
|
ReScale ( float width, float height ) : void |
Rescales this NinwSlicer to the specified width and height.
|
public Calculate ( float X, float Y, int LeftPadding, int RightPadding, int TopPadding, int BottomPadding ) : void | ||
X | float | X-position of texture. |
Y | float | Y-position of texture. |
LeftPadding | int | Amount of padding for left side. |
RightPadding | int | Amount of padding for right side. |
TopPadding | int | Amount of padding for top. |
BottomPadding | int | Amount of padding for bottom. |
Résultat | void |
public NineSlicer ( |
||
Position | Position of where to begin slicing the texture. | |
TextureWidth | int | Width of texture. |
TextureHeight | int | Height of texture. |
LeftPadding | int | Padding on the left. |
RightPadding | int | Padding on the right. |
TopPadding | int | Padding at the top. |
BottomPadding | int | Padding at the bottom. |
Résultat | Files.Manager |
public ReScale ( float width, float height ) : void | ||
width | float | Width to scale to. |
height | float | Height to scale to. |
Résultat | void |
public Rectangle,Microsoft.Xna.Framework BLeft | ||
Résultat |
public Rectangle,Microsoft.Xna.Framework CLeft | ||
Résultat |
public Vector2,Microsoft.Xna.Framework TCenter_Scale | ||
Résultat |
public Rectangle,Microsoft.Xna.Framework TLeft | ||
Résultat |