public UIShowZoneBaseHandler(IPictureBase pict, RectangleF mirrorBound) { pict_ = pict; mirrorBound_ = mirrorBound; ClientBound = pict_.Image2Client(mirrorBound_); pict_.ConversionChanged += OnConversionChanged; }
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; }
private void OnConversionChanged(object sender, EventArgs e) { ClientBound = pict_.Image2Client(mirrorBound_); RebuildZoneData(); pict_.Invalidate(); }
private void OnConversionChanged(object sender, EventArgs e) { Invalidate(); bound_ = pict_.Image2Client(MirrorBound); Invalidate(); }