public TextureClipRegion ( int left, int top, int width, int height ) : System | ||
left | int | The left coordinate. |
top | int | The top coordinate. |
width | int | The width. |
height | int | The height. |
리턴 | System |
public TextureClipRegion(int left, int top, int width, int height) {
if (left < 0 | top < 0) {
throw new ArgumentException("The left or top coordinates are negative.");
} else if (width <= 0 | height <= 0) {
throw new ArgumentException("The width or height are non-positive.");
} else {
this.MyLeft = left;
this.MyTop = top;
this.MyWidth = width;
this.MyHeight = height;
}
}
// --- operators ---