Свойство | Тип | Описание | |
---|---|---|---|
BLeft | |||
CLeft | |||
LeftPadding | int | ||
TCenter_Scale | |||
TLeft | |||
Width | int |
Метод | Описание | |
---|---|---|
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. |
Результат | 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. |
Результат | Files.Manager |
public ReScale ( float width, float height ) : void | ||
width | float | Width to scale to. |
height | float | Height to scale to. |
Результат | void |
public Rectangle,Microsoft.Xna.Framework BLeft | ||
Результат |
public Rectangle,Microsoft.Xna.Framework CLeft | ||
Результат |
public Vector2,Microsoft.Xna.Framework TCenter_Scale | ||
Результат |
public Rectangle,Microsoft.Xna.Framework TLeft | ||
Результат |