public MaskTop(ControlMask mask) : base(mask) { nodes = new Rectangle[3]; for (int i = 0; i < nodes.Length; i++) { nodes[i] = new Rectangle(0, 0, mask.NodeSize, mask.NodeSize); } }
public MaskComponent(ControlMask mask) { this.mask = mask; SetStyle(ControlStyles.SupportsTransparentBackColor, true); SetStyle(ControlStyles.DoubleBuffer, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.ResizeRedraw, true); BackColor = Color.Transparent; }
public MaskBottom(ControlMask mask) : base(mask) { nodes = new Rectangle[3]; for (int i = 0; i < nodes.Length; i++) nodes[i] = new Rectangle(0,0,mask.NodeSize,mask.NodeSize); }
public MaskRight(ControlMask mask) : base(mask) { nodes = new Rectangle[1]; nodes[0] = new Rectangle(0,0,mask.NodeSize,mask.NodeSize); }
public MaskLeft(ControlMask mask) : base(mask) { nodes = new Rectangle[1]; nodes[0] = new Rectangle(0, 0, mask.NodeSize, mask.NodeSize); }