示例#1
0
        public PhotoLayer getClip()
        {
            PhotoLayer pl = new PhotoLayer();

            if (Layer.Children.Contains(sImg))
            {
                Rect            r  = sImg.Clip.Rect;
                WriteableBitmap cb = DrawGraphic.getImageArea(r, sImg);
                pl.setPhoto(cb, ScalePercent, sImg.Clip);
            }
            else
            {
                pl.setPhoto(Photo.Source as WriteableBitmap, ScalePercent);
            }
            return(pl);
        }