Example #1
0
 public DirectImage(VisibleSurfaceBase surface, Rectangle bounds, Tilesheet bmp,
                    TernaryRasterOperations rasterOp)
     : base(surface, bounds)
 {
     _tilesheet = bmp;
     _rasterOp  = rasterOp;
 }
Example #2
0
 public DirectImage(VisibleSurfaceBase surface, Rectangle bounds, Tilesheet bmp,
     TernaryRasterOperations rasterOp)
     : base(surface, bounds)
 {
     _tilesheet = bmp;
     _rasterOp = rasterOp;
 }
Example #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;
 }
Example #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;
 }
Example #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;
 }
Example #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;
 }
Example #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;
 }
Example #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;
 }
Example #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);
 }