473,382 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 2201
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

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

Similar topics

2
by: Ben Amada | last post by:
Hi group. I'm going to display a low resolution image in an HTML page. On the web server, I have a high resolution version of that image. If I display the high resolution image in the browser...
1
by: Miguel Dias Moura | last post by:
Hello, I have a GridView in my page which is created in runtime. It works fine. My page has 2 Asp Buttons: - The HIDE button makes GridView.Visible = False; - The SHOW button makes...
3
by: Andy Baxter | last post by:
I have an image scrolling in a viewport for a panoramic image viewer. The viewport can be resized to several set resolutions so people can adjust the size according to their bandwidth. There are...
0
by: Innova | last post by:
Hi, We are working on a gridview inside the gridview (parent-child) scenario. The data of child grid will depend on the data of parent. Objectives: 1.Add new row in parent grid after each row...
4
by: AG | last post by:
I have a asp.net 2.0 gridview control with select, edit, delete buttons enabled and set to image button type to display my images. Is there any way to access the selectedimageurl property at run...
13
by: AG | last post by:
I have a gridview that I bind to a List(of Type) at runtime. Not using a datasource control. The gridview has a template column with an imagebutton whose commandname is set to 'Delete'. The...
3
by: =?Utf-8?B?SlIx?= | last post by:
I would like to add text to an image. I have tried to use DrawString and it works on some images but on others it is very very small. I am pretty sure it has something to do with the size of the...
3
by: anjali5 | last post by:
Hello Everyone, I want to display an image in my gridview. The only thing is my datatabse table is returning true if there is an image and false if there is no image and I am binding my...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.