468,272 Members | 2,173 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,272 developers. It's quick & easy.

Gridview image resolution

JustRun
127 100+
Hi all,

I have a file button that enable user to choose the image, then save it to the datagridview,

The problem is the resolution of the image After saving go down but before saving it good,

why does it do this? how can I keep the original resolution?
Regarding that I deal with the original size of the image.

Thanks
Nov 18 '09 #1

✓ answered by tlhintoq

It didn't work... Hummm... Follow the instructions.

mage After saving go down
rotate 90 degrees, rotate -90 degrees, then save.
Doing a rotation on a jpg before showing it isn't going to change the fact that it was compressed a second time when saved. The damage is done.

During your copy process Open, rotate, unrotate, save. In order to keep it from being compressed a second time before being saved.

4 2039
tlhintoq
3,525 Expert 2GB
If it is a JPG... JPGs are compressed. Then you are re-compressing it. To resolve that open it, rotate 90 degrees, rotate -90 degrees, then save.
Nov 18 '09 #2
JustRun
127 100+
It didn't work,

Here is my code

Expand|Select|Wrap|Line Numbers
  1.                 Image rayIamge = (Image)patientRaysTableDataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].FormattedValue;
  2.                 rayIamge.RotateFlip(RotateFlipType.Rotate90FlipX);
  3.                 rayIamge.RotateFlip(RotateFlipType.Rotate270FlipY);
  4.                 frmRayImage objRayImage = new frmRayImage(rayIamge);
  5.  
  6.                 objRayImage.ShowDialog();
  7.  
Nov 21 '09 #3
tlhintoq
3,525 Expert 2GB
It didn't work... Hummm... Follow the instructions.

mage After saving go down
rotate 90 degrees, rotate -90 degrees, then save.
Doing a rotation on a jpg before showing it isn't going to change the fact that it was compressed a second time when saved. The damage is done.

During your copy process Open, rotate, unrotate, save. In order to keep it from being compressed a second time before being saved.
Nov 21 '09 #4
JustRun
127 100+
Sorry for the late reply, and many thanks, It works now.

Thank u :)
Nov 24 '09 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Ben Amada | last post: by
3 posts views Thread by Andy Baxter | last post: by
reply views Thread by Innova | last post: by
4 posts views Thread by AG | last post: by
13 posts views Thread by AG | last post: by
3 posts views Thread by =?Utf-8?B?SlIx?= | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.