Пример #1
0
 public SubclassGrayvalue(SuperclassImage Image, string Description)
     : base(Image, Description)
 {
     classImage = Image;
     // _image = Image.GetImage();
     image       = ImageMethod(Image.GetImage());
     description = Description;
 }
 public SubclassGrayvalue(SuperclassImage Image, string Description)
     : base(Image, Description)
 {
     classImage = Image;
    // _image = Image.GetImage();
     image = ImageMethod(Image.GetImage());
     description = Description;
 }
 public SubclassZoomOut(SuperclassImage Image, double size, string Description)
     : base(Image, Description)
 {
     classImage = Image;
     //_image = Image;
     _size = size;
     image = ImageMethod(Image.GetImage());
     description = Description;
 }
Пример #4
0
 public SubclassZoomOut(SuperclassImage Image, double size, string Description)
     : base(Image, Description)
 {
     classImage = Image;
     //_image = Image;
     _size       = size;
     image       = ImageMethod(Image.GetImage());
     description = Description;
 }
 public SubclassRotate(SuperclassImage Image, int degree, string Description)
     : base(Image, Description)
 {
     classImage = Image;
     //classImage.GetImage = Image.GetImage();
     //_image = Image.GetImage();
     _degree     = degree;
     image       = ImageMethod(Image.GetImage());
     description = Description;
 }
 public SubclassRotate(SuperclassImage Image, int degree, string Description)
     : base(Image, Description)
 {
     classImage = Image;
     //classImage.GetImage = Image.GetImage();
     //_image = Image.GetImage();
     _degree = degree;
     image = ImageMethod(Image.GetImage());
     description = Description;
 }
Пример #7
0
 private void GrayValue_Click(object sender, RoutedEventArgs e)
 {
     if (schetchPhotoObject != null)
     {
         schetchPhotoObject = new SubclassGrayvalue(schetchPhotoObject, "alter to gray value 1 time");
         DescriptionChange(schetchPhotoObject);
         frame = schetchPhotoObject.GetImage();
         Image schetchPhoto2 = new Image();
         schetchPhoto2.Source = BitmapSourceConvert.ToBitmapSource(frame);
         schetchPhoto2.Width  = 500;
         schetchPhoto2.Height = 500;
         Canvas.SetTop(schetchPhoto2, 0);
         Canvas.SetLeft(schetchPhoto2, 150);
         Canvas myCanvas2 = new Canvas();
         myCanvas2.Children.Add(schetchPhoto2);
         grid1.Children.Add(myCanvas2);
     }
 }
Пример #8
0
 public override IImage GetRecoveryImage()
 {
     return(classImage.GetImage());
 }
 public SuperclassImageProcessMethod(SuperclassImage Image, string Description)
 {
     _image      = Image.GetImage();
     image       = Image.GetImage();
     description = Description;
 }
 public SuperclassImageProcessMethod(SuperclassImage Image, string Description)
 {
     _image = Image.GetImage();
     image = Image.GetImage();
     description = Description;
 }
 private void GrayValue_Click(object sender, RoutedEventArgs e)
 {
     if (schetchPhotoObject != null)
     {
         schetchPhotoObject = new SubclassGrayvalue(schetchPhotoObject, "alter to gray value 1 time");
         DescriptionChange(schetchPhotoObject); 
         frame = schetchPhotoObject.GetImage();
         Image schetchPhoto2 = new Image();
         schetchPhoto2.Source = BitmapSourceConvert.ToBitmapSource(frame);
         schetchPhoto2.Width = 500;
         schetchPhoto2.Height = 500;
         Canvas.SetTop(schetchPhoto2, 0);
         Canvas.SetLeft(schetchPhoto2, 150);
         Canvas myCanvas2 = new Canvas();
         myCanvas2.Children.Add(schetchPhoto2);
         grid1.Children.Add(myCanvas2);
     }
 }