Пример #1
0
 public Sprite(BalanceDisplayModule container, int x, int y, bool EraseOldAfterMove = true)
 {
     _container = container;
     _pos[0]    = x;
     _pos[1]    = y;
     _newPos[0] = x;
     _newPos[1] = y;
     _size[0]   = 0;
     _size[1]   = 0;
 }
Пример #2
0
 public RectSprite(BalanceDisplayModule container, Color color, int x, int y, int width, int height) : base(container, x, y, width, height, false)
 {
     _color    = color;
     _pixelCol = _container.BitmapConvertPixel(color);
 }
Пример #3
0
 public ResourceImageSprite(BalanceDisplayModule container, int x, int y, System.Resources.ResourceManager resourceMgr, System.Enum resourceID, Bitmap.BitmapImageType imageType) : base(container, x, y)
 {
     _resourceMgr = resourceMgr;
     _resourceID  = resourceID;
     _imageType   = imageType;
 }
Пример #4
0
 public LabelSprite(BalanceDisplayModule container, Font font, Color color, int x, int y, int width, int height) : base(container, x, y, width, height, false)
 {
     _font  = font;
     _color = color;
 }