Thursday, October 22, 2009

Today I did some of the preliminary work for Project Resistance (well I did it yesterday and today, but we'll call it Day 1).

As usual Smith, my go-to graphics guy for things like this, turned out images that were better than expected, so the app won't look like I did the graphics.  That's the first key to this project looking professional.

I did some preliminary inrastructure work for the application, setting up file layouts and the like.  I also did some quick work for drawing the blank resistor on a background as well:

As usual this was pretty painful - way more painful than it should be.  Trying to get alphablending/transparency working on Windows Mobile can be a huge chore.  It's even worse if you want a control (which is what the resistor is) to have a transparent background through which you can see the parent Form (which is where that green PCB image is drawn).

It involves calling back up to the parent and having it draw the clipping region under your control when the control paints itself.  Fortunately I'd run into this before and I had the code readily available.  Many thanks to Alex Feinman for figuring this out in the first place.

This is certainly something Microsoft needs to work on simplifying if they want the average developer to be able to achieve success.

10/22/2009 1:58:24 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [5]  | 
10/22/2009 2:56:42 PM (Eastern Daylight Time, UTC-04:00)
this is a great idea. Will be following your progress and learning on the way along with you guys...
Script Junkie
10/22/2009 5:35:12 PM (Eastern Daylight Time, UTC-04:00)
What is the code you use to draw under the clipping area? I've been trying to do this for quite some time.

Thanks!
10/22/2009 8:56:37 PM (Eastern Daylight Time, UTC-04:00)
All of the code is in COdePlex at the project site.
10/26/2009 12:07:23 PM (Eastern Daylight Time, UTC-04:00)
That is cool utility app.
I just got idea of extending that to use camera to 'scan' real resistor and give a result.
10/27/2009 10:45:14 PM (Eastern Daylight Time, UTC-04:00)
This is a great idea and it gives developers an insight on how things works end-to-end. And Chris Tec doing the same project for iPhone is even more awesome. Gives a good comparison on how easy or difficult things are with each platform. I am sure to follow this project. Thanks!

Prabhu
www.geekswithblogs.net/techtwaddle
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):