public SubclassGrayvalue(SuperclassImage Image, string Description)
     : base(Image, Description)
 {
     classImage = Image;
    // _image = Image.GetImage();
     image = ImageMethod(Image.GetImage());
     description = Description;
 }
Exemplo n.º 2
0
 public SubclassCanny(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;
 }
 public SubclassZoomOut(SuperclassImage Image, double size, string Description)
     : base(Image, Description)
 {
     classImage = Image;
     //_image = Image;
     _size = size;
     image = ImageMethod(Image.GetImage());
     description = Description;
 }
 public Image CreateWallpaper()
 {
     //由product取得原始影像
     //WallpaperProduct = new SubclassWallpaper(frame);
     //Wallpaper = WallpaperProduct.takePhoto();
     designWallpaper();
     returnImage        = new Image();
     returnImage.Source = BitmapSourceConvert.ToBitmapSource(Wallpaper.GetImage());
     return(returnImage);
 }
 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;
 }
 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;
         schetchPhotoToSave   = schetchPhoto2;
         Canvas.SetTop(schetchPhoto2, 0);
         Canvas.SetLeft(schetchPhoto2, 150);
         Canvas myCanvas2 = new Canvas();
         myCanvas2.Children.Add(schetchPhoto2);
         grid1.Children.Add(myCanvas2);
     }
 }
 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;
         schetchPhotoToSave = schetchPhoto2;
         Canvas.SetTop(schetchPhoto2, 0);
         Canvas.SetLeft(schetchPhoto2, 150);
         Canvas myCanvas2 = new Canvas();
         myCanvas2.Children.Add(schetchPhoto2);
         grid1.Children.Add(myCanvas2);
     }
 }
 public override IImage GetRecoveryImage()
 {
     return(classImage.GetImage());
 }
 public SuperclassImageProcessMethod(SuperclassImage Image, string Description)
 {
     _image = Image.GetImage();
     image = Image.GetImage();
     description = Description;
 }
Exemplo n.º 12
0
 public SuperclassImageProcessMethod(SuperclassImage Image, string Description)
 {
     _image      = Image.GetImage();
     image       = Image.GetImage();
     description = Description;
 }