Last post Jan 25, 2007 03:55 AM by norbert.eder
Jan 24, 2007 09:13 PM|SkySky|LINK
I encoutered this problem to draw photo from 320x240 to 240x320. If I just set pixel =240 as width and pixel=320 as height. The picture will look funny.........
can anyone help?
Jan 25, 2007 02:05 AM|norbert.eder|LINK
Have you ever tried to rotage the image? This should be a solution. Here is an example how to rotate a JPEG (other formats possible):
Image i = Image.FromFile(this.imageFilename);
ImageCodecInfo usedIC = this.GetEncoderInfo("image/jpeg");
System.Drawing.Imaging.Encoder encoder =
EncoderParameters encparams = new EncoderParameters(1);
EncoderParameter encparam =
encparams.Param = encparam;
i.Save("filename.jpg", usedIC, encparams );
i = null;
Jan 25, 2007 02:48 AM|SkySky|LINK
Thank for your help. I have tried what you have done by rotating the photo. However, this is not what I wanted as rotating the photo will require you to look at it from different angle.
I want to view it without turning my head base on the rotation of the photo. can you help me?
Jan 25, 2007 03:55 AM|norbert.eder|LINK