Click here to Skip to main content
16,017,907 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to connect to network printer via C# Pin
Pallavi0024-May-11 19:16
Pallavi0024-May-11 19:16 
QuestionPlease help !! Pin
ss.mmm17-Sep-07 10:31
ss.mmm17-Sep-07 10:31 
QuestionRe: Please help !! Pin
ss.mmm17-Sep-07 10:46
ss.mmm17-Sep-07 10:46 
AnswerRe: Please help !! Pin
Bino B19-Sep-07 16:52
Bino B19-Sep-07 16:52 
QuestionHow do I save Image with a different resolution? Pin
aei_totten17-Sep-07 10:08
aei_totten17-Sep-07 10:08 
AnswerRe: How do I save Image with a different resolution? Pin
ChrisKo17-Sep-07 10:43
ChrisKo17-Sep-07 10:43 
GeneralRe: How do I save Image with a different resolution? Pin
aei_totten17-Sep-07 10:46
aei_totten17-Sep-07 10:46 
AnswerRe: How do I save Image with a different resolution? Pin
Guffa17-Sep-07 11:12
Guffa17-Sep-07 11:12 
aei_totten wrote:
I tried this...
Bitmap b = new Bitmap(currentImage);
b.SetResolution(150, 150);
b.Save(saveImageDialog.FileName, System.Drawing.Imaging.ImageFormat.Tiff);

and it didn't work, but I don't know why.


I think that it worked just fine, but it didn't do what you throught that it would do. The SetResolution method does set the resolution of the image, but what you want to do is to change the size of the image.

Create a new Bitmap object with the size that you want. Create a Graphics object for that bitmap using the Graphics.FromImage method. Use the DrawImage method to draw your image onto the bitmap with the desired size.

---
single minded; short sighted; long gone;

QuestionMessage Removed Pin
17-Sep-07 9:35
mango200217-Sep-07 9:35 
AnswerRe: Template or Code Pin
Pete O'Hanlon17-Sep-07 9:44
mvePete O'Hanlon17-Sep-07 9:44 
QuestionWriting a chat program Pin
frixoft17-Sep-07 7:46
frixoft17-Sep-07 7:46 
AnswerRe: Writing a chat program Pin
Pete O'Hanlon17-Sep-07 9:57
mvePete O'Hanlon17-Sep-07 9:57 
AnswerRe: Writing a chat program Pin
Baconbutty17-Sep-07 21:56
Baconbutty17-Sep-07 21:56 
QuestionHow to burn a CD/DVD in C# Pin
mcaos17-Sep-07 6:51
professionalmcaos17-Sep-07 6:51 
AnswerRe: How to burn a CD/DVD in C# Pin
led mike17-Sep-07 7:12
led mike17-Sep-07 7:12 
AnswerRe: How to burn a CD/DVD in C# Pin
Giorgi Dalakishvili17-Sep-07 7:33
mentorGiorgi Dalakishvili17-Sep-07 7:33 
QuestionHow i get file on this url to a local folder?. Pin
msvisio17-Sep-07 6:28
msvisio17-Sep-07 6:28 
AnswerRe: How i get file on this url to a local folder?. Pin
Guffa17-Sep-07 9:28
Guffa17-Sep-07 9:28 
Questionkerberos in c#: I can't add WSE2.0 to my project in Visual Studio Pin
dift17-Sep-07 5:30
dift17-Sep-07 5:30 
QuestionGridView e.NewValues and e.oldvalues empty Pin
ss.mmm17-Sep-07 5:19
ss.mmm17-Sep-07 5:19 
QuestionHow to change http header of the request for Web Services Pin
mishakogan17-Sep-07 5:11
mishakogan17-Sep-07 5:11 
AnswerRe: How to change http header of the request for Web Services Pin
led mike17-Sep-07 7:15
led mike17-Sep-07 7:15 
GeneralRe: How to change http header of the request for Web Services Pin
mishakogan18-Sep-07 7:04
mishakogan18-Sep-07 7:04 
GeneralRe: How to change http header of the request for Web Services Pin
led mike18-Sep-07 11:06
led mike18-Sep-07 11:06 
AnswerRe: How to change http header of the request for Web Services Pin
mishakogan18-Sep-07 18:19
mishakogan18-Sep-07 18:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.