コード例 #1
0
        private void button_vcrop_Click(object sender, RoutedEventArgs e)
        {
            VisualCrop vcrop = new VisualCrop(m, this);

            if (m.cropl != vcrop.m.cropl || m.cropr != vcrop.m.cropr || m.cropt != vcrop.m.cropt || m.cropb != vcrop.m.cropb)
            {
                m = vcrop.m.Clone();
                ApplyCrop();
            }
        }
コード例 #2
0
 private void button_vcrop_Click(object sender, RoutedEventArgs e)
 {
     VisualCrop vcrop = new VisualCrop(m, this);
     if (m.cropl != vcrop.m.cropl || m.cropr != vcrop.m.cropr || m.cropt != vcrop.m.cropt || m.cropb != vcrop.m.cropb)
     {
         m = vcrop.m.Clone();
         ApplyCrop();
     }
 }