Click here to Skip to main content
13,044,467 members (58,038 online)
Rate this:
Please Sign up or sign in to vote.
See more: , +
Is there anyway to manipulate images taken by the windows phone camera?
Its not editing it like sepia or converting it to black and white, what I would like is adding frames on top of it, or maybe some other funny stuffs like hats or glasses or stuffs like that.
I searched for it, but all I found are converting the images to another colors.
Posted 8-Oct-11 12:23pm
Updated 8-Oct-11 13:19pm
Edward Nutting 9-Oct-11 9:00am
Try something yourself...
BlackJack99 10-Oct-11 6:40am
Thank you very much.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

So, anyway, because it seems like there is no answer, here is how i ended up doing it:

public partial class MainPage : PhoneApplicationPage
        WriteableBitmap wb;
        PhotoCamera cam;
        //constructors, other stuffs...
        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
                    cam = new PhotoCamera();
           += new EventHandler(cam_CaptureCompleted);
           += new EventHandler(cam_CaptureImageAvailable);
    void cam_CaptureImageAvailable(object sender, ContentReadyEventArgs e)
            Dispatcher.BeginInvoke(() => {
                BitmapImage bi = new BitmapImage();
                previewImage1.Source = bi;
                wb = new WriteableBitmap(ImageStack, null);
                previewImage.Source = wb;

So, basically, i put an Image object, the frames/sprites that i wanted to stack together into a grid, after the photo captured the camera, the image source will be set to that photo, and i initialized a WritableBitmap using that image stack..
of course, because of this, the resolution of the picture is limited to the resolution of the application, but well, better than nothing...

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 10 Oct 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100