Esempio n. 1
0
 public UIShowZoneBaseHandler(IPictureBase pict, RectangleF mirrorBound)
 {
     pict_                    = pict;
     mirrorBound_             = mirrorBound;
     ClientBound              = pict_.Image2Client(mirrorBound_);
     pict_.ConversionChanged += OnConversionChanged;
 }
Esempio n. 2
0
        public UISelMirrorBoundHandler(IPictureBase pict, RectangleF mirrorBound, Options options)
        {
            pict_            = pict;
            options_         = options;
            pen_             = new Pen(options.SelectPenColor, 1);
            pen_.DashPattern = new float[] { 6.0F, 3.0F };
            MirrorBound      = mirrorBound;
            bound_           = pict_.Image2Client(mirrorBound);

            pict_.ConversionChanged += OnConversionChanged;
        }
Esempio n. 3
0
 private void OnConversionChanged(object sender, EventArgs e)
 {
     ClientBound = pict_.Image2Client(mirrorBound_);
     RebuildZoneData();
     pict_.Invalidate();
 }
Esempio n. 4
0
 private void OnConversionChanged(object sender, EventArgs e)
 {
     Invalidate();
     bound_ = pict_.Image2Client(MirrorBound);
     Invalidate();
 }