public MoveNubRenderer(SurfaceBoxRendererList ownerList)
     : base(ownerList)
 {
     this.shape = MoveNubShape.Square;
     this.transform = new Matrix();
     this.transform.Reset();
     this.alpha = 255;
     Size = new SizeF(5, 5);
 }
 public MoveNubRenderer(SurfaceBoxRendererList ownerList)
     : base(ownerList)
 {
     this.shape     = MoveNubShape.Square;
     this.transform = new Matrix();
     this.transform.Reset();
     this.alpha = 255;
     Size       = new SizeF(5, 5);
 }
Beispiel #3
0
        public SurfaceBox()
        {
            InitializeComponent();
            this.scaleFactor = ScaleFactor.OneToOne;

            this.rendererList = new SurfaceBoxRendererList(this.Size, this.Size);
            this.rendererList.Invalidated += new InvalidateEventHandler(Renderers_Invalidated);
            this.baseRenderer = new SurfaceBoxBaseRenderer(this.rendererList, null);
            this.rendererList.Add(this.baseRenderer, false);
        }
Beispiel #4
0
        public SurfaceBox()
        {
            InitializeComponent();
            this.scaleFactor = ScaleFactor.OneToOne;

            this.rendererList              = new SurfaceBoxRendererList(this.Size, this.Size);
            this.rendererList.Invalidated += new InvalidateEventHandler(Renderers_Invalidated);
            this.baseRenderer              = new SurfaceBoxBaseRenderer(this.rendererList, null);
            this.rendererList.Add(this.baseRenderer, false);
        }
Beispiel #5
0
        public void RenderTo(Surface dst)
        {
            dst.Clear(ColorBgra.Transparent);

            if (this.surface != null)
            {
                SurfaceBoxRendererList sbrl = new SurfaceBoxRendererList(this.surface.Size, dst.Size);
                SurfaceBoxBaseRenderer sbbr = new SurfaceBoxBaseRenderer(sbrl, this.surface);
                sbrl.Add(sbbr, true);
                sbrl.Render(dst, new Point(0, 0));
                sbrl.Remove(sbbr);
            }
        }
 public SelectionRenderer(SurfaceBoxRendererList ownerList, Selection selection, UserControl2 ownerControl)
     : base(ownerList)
 {
     this.ownerControl = ownerControl;
     this.selection = selection;
     this.selection.Changing += new EventHandler(OnSelectionChanging);
     this.selection.Changed += new EventHandler(OnSelectionChanged);
     this.components = new System.ComponentModel.Container();
     this.selectionTimer = new System.Windows.Forms.Timer(this.components);
     this.selectionTimer.Enabled = true;
     this.selectionTimer.Interval = dancingAntsInterval / 2;
     this.selectionTimer.Tick += new System.EventHandler(this.SelectionTimer_Tick);
 }
Beispiel #7
0
 public SelectionRenderer(SurfaceBoxRendererList ownerList, Selection selection, UserControl2 ownerControl)
     : base(ownerList)
 {
     this.ownerControl            = ownerControl;
     this.selection               = selection;
     this.selection.Changing     += new EventHandler(OnSelectionChanging);
     this.selection.Changed      += new EventHandler(OnSelectionChanged);
     this.components              = new System.ComponentModel.Container();
     this.selectionTimer          = new System.Windows.Forms.Timer(this.components);
     this.selectionTimer.Enabled  = true;
     this.selectionTimer.Interval = dancingAntsInterval / 2;
     this.selectionTimer.Tick    += new System.EventHandler(this.SelectionTimer_Tick);
 }
Beispiel #8
0
 public SelectionRenderer(SurfaceBoxRendererList ownerList, Selection selection)
     : this(ownerList, selection, null)
 {
 }
 public SurfaceBoxBaseRenderer(SurfaceBoxRendererList ownerList, Surface source)
     : base(ownerList)
 {
     this.source = source;
     ChooseRenderDelegate();
 }
 public BrushPreviewRenderer(SurfaceBoxRendererList ownerList)
     : base(ownerList)
 {
 }
Beispiel #11
0
 public SurfaceBoxGridRenderer(SurfaceBoxRendererList ownerList)
     : base(ownerList)
 {
 }
Beispiel #12
0
 public SurfaceBoxRenderer(SurfaceBoxRendererList ownerList)
 {
     this.ownerList = ownerList;
     this.visible   = true;
 }
Beispiel #13
0
 protected CanvasControl(SurfaceBoxRendererList ownerList)
     : base(ownerList)
 {
 }
 public RotateNubRenderer(SurfaceBoxRendererList ownerList)
     : base(ownerList)
 {
     this.location = new Point(0, 0);
 }
Beispiel #15
0
 public SurfaceBoxGraphicsRenderer(SurfaceBoxRendererList ownerList)
     : base(ownerList)
 {
 }
 public SurfaceBoxGraphicsRenderer(SurfaceBoxRendererList ownerList)
     : base(ownerList)
 {
 }
Beispiel #17
0
        public void RenderTo(Surface dst)
        {
            dst.Clear(ColorBgra.Transparent);

            if (this.surface != null)
            {
                SurfaceBoxRendererList sbrl = new SurfaceBoxRendererList(this.surface.Size, dst.Size);
                SurfaceBoxBaseRenderer sbbr = new SurfaceBoxBaseRenderer(sbrl, this.surface);
                sbrl.Add(sbbr, true);
                sbrl.Render(dst, new Point(0, 0));
                sbrl.Remove(sbbr);
            }
        }
 public SurfaceBoxBaseRenderer(SurfaceBoxRendererList ownerList, Surface source)
     : base(ownerList)
 {
     this.source = source;
     ChooseRenderDelegate();
 }
 public SurfaceBoxRenderer(SurfaceBoxRendererList ownerList)
 {
     this.ownerList = ownerList;
     this.visible = true;
 }
 public BrushPreviewRenderer(SurfaceBoxRendererList ownerList)
     : base(ownerList)
 {
 }
Beispiel #21
0
 protected CanvasControl(SurfaceBoxRendererList ownerList)
     : base(ownerList)
 {
 }
 public SurfaceBoxGridRenderer(SurfaceBoxRendererList ownerList)
     : base(ownerList)
 {
 }
Beispiel #23
0
 public SelectionRenderer(SurfaceBoxRendererList ownerList, Selection selection)
     : this(ownerList, selection, null)
 {
 }
 public RotateNubRenderer(SurfaceBoxRendererList ownerList)
     : base(ownerList)
 {
     this.location = new Point(0, 0);
 }