Exemplo n.º 1
0
 public DirectImage(VisibleSurfaceBase surface, Rectangle bounds, Tilesheet bmp,
                    TernaryRasterOperations rasterOp)
     : base(surface, bounds)
 {
     _tilesheet = bmp;
     _rasterOp  = rasterOp;
 }
Exemplo n.º 2
0
 public DirectImage(VisibleSurfaceBase surface, Rectangle bounds, Tilesheet bmp,
     TernaryRasterOperations rasterOp)
     : base(surface, bounds)
 {
     _tilesheet = bmp;
     _rasterOp = rasterOp;
 }
Exemplo n.º 3
0
 public DirectRectangle(VisibleSurfaceBase surface, Rectangle bounds, Color color, bool isFilled, int alpha)
     : base(surface, bounds)
 {
     _isExplicitAlphaBlended = true;
     _width = 1;
     _color = color;
     _alpha = alpha;
     _isFilled = true;
 }
Exemplo n.º 4
0
 public DirectRectangle(VisibleSurfaceBase surface, Rectangle bounds, Color color, bool isFilled)
     : base(surface, bounds)
 {
     _isExplicitAlphaBlended = false;
     _width = 1;
     _color = color;
     _alpha = color.A;
     _isFilled = isFilled;
 }
Exemplo n.º 5
0
 public DirectRectangle(VisibleSurfaceBase surface, Rectangle bounds, Color color, bool isFilled, int alpha)
     : base(surface, bounds)
 {
     _isExplicitAlphaBlended = true;
     _width    = 1;
     _color    = color;
     _alpha    = alpha;
     _isFilled = true;
 }
Exemplo n.º 6
0
 public DirectRectangle(VisibleSurfaceBase surface, Rectangle bounds, Color color, bool isFilled)
     : base(surface, bounds)
 {
     _isExplicitAlphaBlended = false;
     _width    = 1;
     _color    = color;
     _alpha    = color.A;
     _isFilled = isFilled;
 }
Exemplo n.º 7
0
        public DirectDrawing(VisibleSurfaceBase surface, Rectangle bounds)
        {
            _instances.Add(this);

            _surface = surface;
            _bounds  = bounds;
            _zOrder  = 0;
            _Name    = Guid.NewGuid().ToString();

            _drawSource = _surface.Buffer.DrawSource;

            ForceRefresh();
        }
 public VisibleSufaceBindEventArgs(VisibleSurfaceBase surface, GridPointMatrixes oldBind, GridPointMatrixes newBind)
 {
     Surface = surface;
     OldBindValue = oldBind;
     NewBindValue = newBind;
 }
Exemplo n.º 9
0
 public Text(VisibleSurfaceBase surface, string text, Font font, Rectangle bounds,
     Color foreColor, Color backColor, TextFormatFlags flags)
     : base(surface, bounds)
 {
     InstantiateNew(text, font, foreColor, backColor, flags);
 }
 public VisibleSufaceBindEventArgs(VisibleSurfaceBase surface, GridPointMatrixes oldBind, GridPointMatrixes newBind)
 {
     Surface      = surface;
     OldBindValue = oldBind;
     NewBindValue = newBind;
 }
Exemplo n.º 11
0
 public Text(VisibleSurfaceBase surface, string text, Font font, Rectangle bounds,
             Color foreColor, Color backColor, TextFormatFlags flags)
     : base(surface, bounds)
 {
     InstantiateNew(text, font, foreColor, backColor, flags);
 }