Example #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;
 }
Example #3
0
        private void Photo_Click(object sender, RoutedEventArgs e)
        {
            string Date = DateTime.Now.ToString("MM/dd/yyyy");

            photoFlag          = false;
            schetchPhotoObject = new SubclassScretchedphoto(frame, "The photo taken on" + Date);
            DescriptionChange(schetchPhotoObject);
        }
 public SubclassZoomOut(SuperclassImage Image, double size, string Description)
     : base(Image, Description)
 {
     classImage = Image;
     //_image = Image;
     _size = size;
     image = ImageMethod(Image.GetImage());
     description = Description;
 }
Example #5
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;
 }
Example #8
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);
     }
 }
 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;
 }
Example #11
0
 public void DescriptionChange(SuperclassImage Image)
 {
     textBlock1.Text = Image.GetDescription();
 }
        public void DescriptionChange(SuperclassImage Image)
        {

            textBlock1.Text = Image.GetDescription();
        }
 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);
     }
 }
 private void Photo_Click(object sender, RoutedEventArgs e)
 {
     string Date = DateTime.Now.ToString("MM/dd/yyyy");
     photoFlag = false;
     schetchPhotoObject = new SubclassScretchedphoto(frame, "The photo taken on" + Date);
     DescriptionChange(schetchPhotoObject);
 }