public MaskTop(MpeControlMask 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(MpeControlMask 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 MaskLeft(MpeControlMask mask) : base(mask) { nodes = new Rectangle[1]; nodes[0] = new Rectangle(0, 0, mask.NodeSize, mask.NodeSize); }