forked from iwangx/sprite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Area.cs
47 lines (40 loc) · 905 Bytes
/
Area.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
namespace CssSprite
{
/// <summary>
/// 选择区域
/// </summary>
public class Area
{
/// <summary>
/// 零点位置
/// </summary>
private Point _zeroPoint;
/// <summary>
/// 高度
/// </summary>
private int _height;
/// <summary>
/// 宽度
/// </summary>
private int _width;
public Point ZeroPoint
{
get { return _zeroPoint == null ? new Point() : _zeroPoint; }
set { _zeroPoint = value; }
}
public int Height
{
get { return _height ; }
set { _height = value; }
}
public int Width
{
get { return _width; }
set { _width = value; }
}
}
}