Search code examples
c#xamlwindows-phone

cropping the zoomed image in windows phone using the "Image Recipes" official sample


I found this great official sample for pinching and zooming images, here : Image Recipes I have changed the dimensions of the viewport to my desired size(say 300x300). now suppose I have zoomed the image to the desired state and need to crop it(and save the cropped image,as it's seen after zooming inside the viewport). how could I do that? please advise.


Solution

  • well, since I didn't get any response here, I came up with this idea to place another canvas behind the viewportcontrol and render it to a wrtiteablebitmap . this is working quite well.