Beispiel #1
0
 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 #2
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 #3
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 #4
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);
            }
        }
Beispiel #5
0
 public BrushPreviewRenderer(SurfaceBoxRendererList ownerList)
     : base(ownerList)
 {
 }
Beispiel #6
0
 public SelectionRenderer(SurfaceBoxRendererList ownerList, Selection selection)
     : this(ownerList, selection, null)
 {
 }
Beispiel #7
0
 public SurfaceBoxRenderer(SurfaceBoxRendererList ownerList)
 {
     this.ownerList = ownerList;
     this.visible   = true;
 }
Beispiel #8
0
 protected CanvasControl(SurfaceBoxRendererList ownerList)
     : base(ownerList)
 {
 }
Beispiel #9
0
 public SurfaceBoxBaseRenderer(SurfaceBoxRendererList ownerList, Surface source)
     : base(ownerList)
 {
     this.source = source;
     ChooseRenderDelegate();
 }
Beispiel #10
0
 public SurfaceBoxGraphicsRenderer(SurfaceBoxRendererList ownerList)
     : base(ownerList)
 {
 }
Beispiel #11
0
 public RotateNubRenderer(SurfaceBoxRendererList ownerList)
     : base(ownerList)
 {
     this.location = new Point(0, 0);
 }
Beispiel #12
0
 public SurfaceBoxGridRenderer(SurfaceBoxRendererList ownerList)
     : base(ownerList)
 {
 }