1. seemack's Avatar
    Hey guys, I released an app a couple days ago and it was an interesting technical challenge so I wanted to share some details on how I accomplished it. Basically, I needed to generate paths that looked like a lumpy circle. The reason (joke) behind that is that misshapen circles will be the new profile shape after perfect circles have run their course.

    So the first step was creating a perfect circle. I used this article by Charles Petzold to figure out how to calculate the origin and control points: Petzold Book Blog - Bzier Circles and Bzier Ellipses

    After getting the perfect circles, I simply updated the code so that it would randomly shift the points before adding them to the path geometry and, voila, misshapen circles! I experimented with the number of points and shift amount to get the desired lumpy-ness. In a future version, I plan to allow the user to customize it.
    The next tricky part was painting the desired image into the lumpy circle and allowing the user to pan and zoom. I started by setting the image as the image brush. I added a render transform to it and manipulated it via the touch events. This didn't work because the image brush only seems to load part of the image at runtime. .The problem would manifest when I panned across the image towards the edge and before I got to the actual edge of the image, the image brush would display black.

    Ultimately, I used the Nokia Imaging SDK method of panning through an image. They have an excellent tutorial here: Memory-efficient Navigation in Very High Resolution Images on Windows Phone - Wiki. Basically, it generates the appropriate image and sets it as the imagebrush source as you pan/zoom.

    Other neat things I found:
    - You can not save pngs to the camera roll
    - The "Me" tile does not respect transparencies in pngs. I saved a png to my device and the lumpy circle appeared with an accent-coloured background
    - The OneDrive documentation is not so good
    - Dvlup.com featured my app but it surprisingly did not trigger an avalanche of downloaders : )

    The app is called Lumpy Circles and can be found here. Feel free to check it out and ask me any questions about it. Lumpy Circles | Windows Phone Apps+Games Store (United States)
    Silence#WP and loverusham like this.
    11-17-2014 10:41 PM
  2. seemack's Avatar
    Example image for those curious: ss-01.jpg
    Silence#WP likes this.
    11-17-2014 10:46 PM
  3. anon9169769's Avatar
    you pan/zoom.

    Other neat things I found:
    - You can not save pngs to the camera roll
    - The "Me" tile does not respect transparencies in pngs. I saved a png to my device and the lumpy circle appeared with an accent-coloured background
    - The OneDrive documentation is not so good
    - Dvlup.com featured my app but it surprisingly did not trigger an avalanche of downloaders : )

    )[/url]
    That doesn't sound neat looool appreciate how your developing for windows phone but we can do our own circles with various apps already. Would love to see a take on with a game called siege hero. NOW IF YOU CAN DO THAT THEN MONEY WILL COME YOUR WAY I would happily pay for a siege hero game like they have on android, apple and flash player
    11-17-2014 11:59 PM
  4. loverusham's Avatar
    Great App with Dedicated Hardwork..I like your passion. And Dvlup.com is a great site but only for devlopers so it popularizes your App only among developers.And as u may know developers are always busy with updates and devlopment so the avalanche might be just a snowfall. I read about your update on dvlup, it was just 2 steps below my Techify Update.I would have really appreciated your hardwork with a 5 star review but the funny part is I dont OWN a windowsphone Its quite ironic that a developer doesn't have the phone he's developing for.I use Emulators. Anyways, Congratulations for the App
    seemack likes this.
    11-18-2014 10:31 AM
  5. seemack's Avatar
    I guess I should have specified that they would neat to devs.

    Also, if you had checked the link, you would have seen that the app is free. I'm clearly not doing this for money.
    03-29-2015 10:39 AM
  6. nmercy's Avatar
    It's a great feeling when you can get that app out there... especially when you've learned something new.

    I definitely agree with you on the OneDrive documentation being lacking, though it appears to have been updated very recently so it might be better now. Fortunately ran into some good tutorials online and managed to hobble some OneDrive support together.
    05-06-2015 02:19 PM

Similar Threads

  1. How do I fix the error code: 0x800704CF@10?
    By Windows Central Question in forum Ask a Question
    Replies: 3
    Last Post: 01-09-2016, 04:19 AM
  2. Favorite Apps
    By bdball in forum Microsoft Surface 2
    Replies: 4
    Last Post: 11-24-2014, 05:43 AM
  3. Photos tile goes blank after a while
    By Guitarpik in forum Nokia Lumia 1520
    Replies: 4
    Last Post: 11-18-2014, 03:52 PM
  4. Replies: 2
    Last Post: 11-17-2014, 08:07 PM
  5. mTranslator is back from the dead, and useful for translating to Indian languages
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 0
    Last Post: 11-17-2014, 06:11 PM
LINK TO POST COPIED TO CLIPBOARD