Click here to Skip to main content
15,909,466 members
Home / Discussions / C#
   

C#

 
QuestionStringBuilder vs. String Pin
yesufollower16-Feb-07 6:12
yesufollower16-Feb-07 6:12 
AnswerRe: StringBuilder vs. String Pin
Thomas Stockwell16-Feb-07 6:16
professionalThomas Stockwell16-Feb-07 6:16 
AnswerRe: StringBuilder vs. String Pin
tgrt16-Feb-07 7:05
tgrt16-Feb-07 7:05 
AnswerRe: StringBuilder vs. String Pin
Marcus J. Smith16-Feb-07 8:27
professionalMarcus J. Smith16-Feb-07 8:27 
AnswerRe: StringBuilder vs. String Pin
Luc Pattyn16-Feb-07 9:39
sitebuilderLuc Pattyn16-Feb-07 9:39 
AnswerRe: StringBuilder vs. String Pin
Vega0216-Feb-07 20:54
Vega0216-Feb-07 20:54 
QuestionCompressing a jpg file Pin
GazzaJ16-Feb-07 4:05
GazzaJ16-Feb-07 4:05 
AnswerRe: Compressing a jpg file Pin
Russell Jones16-Feb-07 4:58
Russell Jones16-Feb-07 4:58 
<br />
            System.Drawing.Imaging.EncoderParameters encParams = new System.Drawing.Imaging.EncoderParameters();<br />
            encParams.Param[0] = new System.Drawing.Imaging.EncoderParameter(System.Drawing.Imaging.Encoder.Quality, Quality);<br />
            MemoryStream ms = new MemoryStream();<br />
            _reformattedImage.Save(ms, System.Drawing.Imaging.ImageCodecInfo.GetImageEncoders()[1], encParams);<br />
            _reformattedImage = Image.FromStream(ms);


That's raw code straight out of an app i've got infront of me it's got the quality methods you'll need though. Quality is the parameter from 1 to 100 that sets the quality level

Things like Bitmap should have load and save methods on them (you can load jpegs into bitmap objects).

HTH

Russ
GeneralRe: Compressing a jpg file Pin
GazzaJ19-Feb-07 1:41
GazzaJ19-Feb-07 1:41 
QuestionWindows Forms and XML Pin
parth_00716-Feb-07 3:25
parth_00716-Feb-07 3:25 
AnswerRe: Windows Forms and XML Pin
Colin Angus Mackay16-Feb-07 3:50
Colin Angus Mackay16-Feb-07 3:50 
GeneralRe: Windows Forms and XML Pin
parth_00716-Feb-07 4:16
parth_00716-Feb-07 4:16 
AnswerRe: Windows Forms and XML Pin
Pete O'Hanlon16-Feb-07 4:37
mvePete O'Hanlon16-Feb-07 4:37 
GeneralRe: Windows Forms and XML Pin
parth_00716-Feb-07 5:36
parth_00716-Feb-07 5:36 
GeneralRe: Windows Forms and XML Pin
Pete O'Hanlon16-Feb-07 9:57
mvePete O'Hanlon16-Feb-07 9:57 
GeneralRe: Windows Forms and XML Pin
parth_00716-Feb-07 10:00
parth_00716-Feb-07 10:00 
GeneralRe: Windows Forms and XML Pin
Pete O'Hanlon16-Feb-07 10:07
mvePete O'Hanlon16-Feb-07 10:07 
QuestionGraphics Clipping in C#.net Pin
free_soul42416-Feb-07 3:22
free_soul42416-Feb-07 3:22 
AnswerRe: Graphics Clipping in C#.net Pin
samreengr816-Feb-07 9:41
samreengr816-Feb-07 9:41 
GeneralRe: Graphics Clipping in C#.net Pin
free_soul42416-Feb-07 21:50
free_soul42416-Feb-07 21:50 
GeneralRe: Graphics Clipping in C#.net Pin
samreengr819-Feb-07 10:21
samreengr819-Feb-07 10:21 
Questioncall a vb function with out paramaters Pin
cmarmr16-Feb-07 3:17
cmarmr16-Feb-07 3:17 
AnswerRe: call a vb function with out paramaters Pin
Pete O'Hanlon16-Feb-07 4:38
mvePete O'Hanlon16-Feb-07 4:38 
GeneralRe: call a vb function with out paramaters Pin
cmarmr16-Feb-07 5:44
cmarmr16-Feb-07 5:44 
AnswerRe: call a vb function with out paramaters Pin
Thomas Stockwell16-Feb-07 6:10
professionalThomas Stockwell16-Feb-07 6:10 

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.