It does not make me happy to find a solution just by fiddling with the values. Something is definitely wrong in the way the code handles the images. As you said, it SHOULD work as originally written. I just manually grabbed a 4x3 screenshot in my closet, clipped a 512x512 image of it at (55,60) for the male avvie, and saved as a JPEG. Perfect image.
Now how is the code actually doing it? The only way I can think that the image is being distorted is the clipping function does not actually get 512x512 pixels but some 4x3 ratio that causes the save to jpeg to distort. I will see if I can duplicate the distortion by playing with some conversion tests. Maybe we can following the results back to the code that produces them (yeah, I always work backwards from the result to the code
![Smile :)](./images/smilies/icon_e_smile.gif)
).
Now I'm wondering if the raw pixel stream has a 1 to 1 correspondence with the displayed pixels when a particular resolution is specified. Is it scaling raw pixels to displayed pixels? If so then what is being cropped?
EDIT :Ah ha! I found where the distortion happens! When you press the camera button, the screen flashes as the screen grab occurs. That image is distorted and the cropping is simply grabbing the distorted image. I used a FRAPS movie to actually see this but so far have not been able to grab that frame to show you. I will post the image if I can get it (Why did my video editing software have to be on my laptop that died
![Sad :(](./images/smilies/icon_e_sad.gif)
).
Here is the distorted image... this is what pops up when you click the camera button. I couldn't get the video to upload <snarl>
- Show Spoiler
![Image](http://i204.photobucket.com/albums/bb123/greeter_jiim/Misc/closetheadshot.jpg)