Click here to Skip to main content
15,914,111 members
Home / Discussions / C#
   

C#

 
AnswerRe: Math Analysis [modified] Pin
Luc Pattyn18-Jan-09 10:57
sitebuilderLuc Pattyn18-Jan-09 10:57 
Questionint? VS int Pin
Mohammad Dayyan18-Jan-09 10:20
Mohammad Dayyan18-Jan-09 10:20 
AnswerRe: int? VS int Pin
Reza Raad18-Jan-09 10:26
Reza Raad18-Jan-09 10:26 
GeneralRe: int? VS int Pin
Mohammad Dayyan18-Jan-09 10:30
Mohammad Dayyan18-Jan-09 10:30 
QuestionWeb Browser Automation and WebBrowserReadyState.Complete cannot view redirect page Pin
JoeJankowski18-Jan-09 9:43
JoeJankowski18-Jan-09 9:43 
QuestionImage size Pin
Blue_Boy18-Jan-09 8:02
Blue_Boy18-Jan-09 8:02 
AnswerRe: Image size Pin
Ravi Bhavnani18-Jan-09 8:09
professionalRavi Bhavnani18-Jan-09 8:09 
AnswerRe: Image size Pin
Luc Pattyn18-Jan-09 8:13
sitebuilderLuc Pattyn18-Jan-09 8:13 
Hi,

Image.Save has many overloads, don't just use myImage.Save(myFilename);

the file size depends on many things:
- the image size in pixels (width and height); do you actually need that resolution?
- the number of bits per pixel (e.g. 24 bpp);
- the image format (see ImageFormat class).

It all depends on what you want or need. You can reduce the number of pixels (by resampling the image), you can reduce the number of bits per pixel, or you can choose an image format with high(er) compression.
Some formats have no compression, some can compress but don't do so by default, some (e.g. JPEG) perform
compression and allow a choice from best quality to most compact.
Another way to reduce image size is reducing the number of different colors to 256 and use an
indexed image, that way it takes 1 byte per pixel.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

I use ListBoxes for line-oriented text output (not TextBoxes), and PictureBoxes for pictures (not drawings).


GeneralRe: Image size Pin
Blue_Boy18-Jan-09 9:09
Blue_Boy18-Jan-09 9:09 
GeneralRe: Image size Pin
Luc Pattyn18-Jan-09 9:10
sitebuilderLuc Pattyn18-Jan-09 9:10 
QuestionWindows 7, SetWindowPos, and AnimateWindow Pin
brian.shapiro18-Jan-09 6:10
brian.shapiro18-Jan-09 6:10 
QuestionWhy is this not CLS compliant? Pin
#realJSOP18-Jan-09 2:48
professional#realJSOP18-Jan-09 2:48 
AnswerRe: Why is this not CLS compliant? Pin
Nicholas Butler18-Jan-09 3:46
sitebuilderNicholas Butler18-Jan-09 3:46 
GeneralRe: Why is this not CLS compliant? Pin
#realJSOP18-Jan-09 4:38
professional#realJSOP18-Jan-09 4:38 
GeneralRe: Why is this not CLS compliant? Pin
Nicholas Butler18-Jan-09 5:29
sitebuilderNicholas Butler18-Jan-09 5:29 
QuestionProgramming Web In C# Pin
trinm198718-Jan-09 1:56
trinm198718-Jan-09 1:56 
Questiondrawing gone Pin
staticv18-Jan-09 0:49
staticv18-Jan-09 0:49 
AnswerRe: drawing gone Pin
Mustafa Ismail Mustafa18-Jan-09 0:56
Mustafa Ismail Mustafa18-Jan-09 0:56 
GeneralRe: drawing gone Pin
staticv18-Jan-09 1:19
staticv18-Jan-09 1:19 
GeneralRe: drawing gone Pin
Mustafa Ismail Mustafa18-Jan-09 1:25
Mustafa Ismail Mustafa18-Jan-09 1:25 
GeneralRe: drawing gone Pin
Colin Angus Mackay18-Jan-09 1:34
Colin Angus Mackay18-Jan-09 1:34 
GeneralRe: drawing gone Pin
Guffa18-Jan-09 1:57
Guffa18-Jan-09 1:57 
GeneralRe: drawing gone Pin
Colin Angus Mackay18-Jan-09 2:03
Colin Angus Mackay18-Jan-09 2:03 
AnswerRe: drawing gone Pin
Colin Angus Mackay18-Jan-09 1:00
Colin Angus Mackay18-Jan-09 1:00 
AnswerRe: drawing gone Pin
Christian Graus18-Jan-09 1:23
protectorChristian Graus18-Jan-09 1:23 

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.