Click here to Skip to main content
15,798,200 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
is it possible to develop a Crop control for cropping an image in windows 8 phone apps. Please provide the samples..

Sarath s

1 solution

In a typical .NET WPF application, we can use the System.Windows.Media.Imaging.CroppedBitmap class to crop a bitmap, but in a Windows Store app, this class is not available. In Windows Store app, you can crop a bitmap by using a BitmapTransform class while reading the bitmap in a BitmapDecoder. In this video, we will demonstrate how to crop an image in a Windows Store app.
Refer- How to crop an image in a Windows Store app[^].

Sample Code-
1. How to crop bitmap in a Windows Store app (C#)[^].
2. Phone App- Photos Sample[^]

1. Photo Crop[^]
Share this answer
Bilaal John S 10-Apr-13 23:53pm    
I am looking for samples in c# for WINDOWS 8 PHONE apps .
Have you seen that video ?
In that video, one link is displayed to download the sample code.
Anyway I am giving you the link here. - How to crop bitmap in a Windows Store app (C#).

I have also updated my answer as I included the link.
Bilaal John S 11-Apr-13 2:52am    
hi Tadit Dash,
thank you for your replay...But I am looking for the samples for windows 8 phone apps. The above sample is for store apps. Actually all that events , namespaces are not in windows phone 8 apps.

Ok. Sorry. My mistake then. Can't you use the same logic or functionality for phone apps ?
I am not into these, so I don't have any knowledge exactly how to do. :(
I got one link of one app, but I can't get the sample.
Photo Crop.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900