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

C#

 
AnswerRe: Column Click with right mouse button ? Pin
[Gone]18-Mar-06 5:52
[Gone]18-Mar-06 5:52 
Questionretrieving a command button property strored from the database Pin
Cagalli17-Mar-06 19:34
Cagalli17-Mar-06 19:34 
QuestionStrategy Issue, Please Help Pin
student_rhr17-Mar-06 18:12
student_rhr17-Mar-06 18:12 
AnswerRe: Strategy Issue, Please Help Pin
leppie17-Mar-06 22:23
leppie17-Mar-06 22:23 
GeneralRe: Strategy Issue, Please Help Pin
student_rhr18-Mar-06 8:58
student_rhr18-Mar-06 8:58 
QuestionGDI+, resize image QUALITY! Pin
knoppis17-Mar-06 14:09
knoppis17-Mar-06 14:09 
AnswerRe: GDI+, resize image QUALITY! Pin
leppie17-Mar-06 14:39
leppie17-Mar-06 14:39 
AnswerRe: GDI+, resize image QUALITY! Pin
Nicholas Butler18-Mar-06 1:18
sitebuilderNicholas Butler18-Mar-06 1:18 
Hi
You can use a quality parameter when saving as a jpeg:

...
    int quality = 90; // percent
    EncoderParameters parameters = new EncoderParameters( 1 );
    parameters.Param[ 0 ] = new EncoderParameter( Encoder.Quality, quality );
 
    ImageCodecInfo codec = GetImageCodecInfo( ImageFormat.Jpeg );
    canvas.Save("C:\\Inetpub\\wwwroot\\1.jpg", codec, parameters );
...
 
public static ImageCodecInfo GetImageCodecInfo( ImageFormat format )
{
    ImageCodecInfo[] codecs = ImageCodecInfo.GetImageEncoders();

    foreach ( ImageCodecInfo codec in codecs )
        if ( codec.FormatID == format.Guid )
            return codec;

    return null;
}


----------------------------
Be excellent to each other Smile | :)

EasiReports[^] My free reporting component for WinForms.
GeneralRe: GDI+, resize image QUALITY! Pin
knoppis18-Mar-06 4:24
knoppis18-Mar-06 4:24 
AnswerRe: GDI+, resize image QUALITY! Pin
Nicholas Butler18-Mar-06 4:33
sitebuilderNicholas Butler18-Mar-06 4:33 
GeneralRe: GDI+, resize image QUALITY! Pin
knoppis18-Mar-06 4:36
knoppis18-Mar-06 4:36 
AnswerRe: GDI+, resize image QUALITY! Pin
Nicholas Butler18-Mar-06 4:40
sitebuilderNicholas Butler18-Mar-06 4:40 
GeneralRe: GDI+, resize image QUALITY! Pin
knoppis18-Mar-06 4:42
knoppis18-Mar-06 4:42 
GeneralRe: GDI+, resize image QUALITY! Pin
knoppis18-Mar-06 4:45
knoppis18-Mar-06 4:45 
QuestionRe: GDI+, resize image QUALITY! Pin
Nicholas Butler18-Mar-06 4:55
sitebuilderNicholas Butler18-Mar-06 4:55 
AnswerRe: GDI+, resize image QUALITY! Pin
knoppis18-Mar-06 5:21
knoppis18-Mar-06 5:21 
AnswerRe: GDI+, resize image QUALITY! Pin
Robert Rohde18-Mar-06 6:07
Robert Rohde18-Mar-06 6:07 
QuestionConnecting to DB2 in C# Pin
jjm40017-Mar-06 11:40
jjm40017-Mar-06 11:40 
AnswerRe: Connecting to DB2 in C# Pin
Mike Dimmick17-Mar-06 13:57
Mike Dimmick17-Mar-06 13:57 
QuestionRe: Connecting to DB2 in C# Pin
jjm40020-Mar-06 3:09
jjm40020-Mar-06 3:09 
QuestionDataview question Pin
Tom Wright17-Mar-06 10:36
Tom Wright17-Mar-06 10:36 
AnswerRe: Dataview question Pin
Tom Larsen17-Mar-06 10:43
Tom Larsen17-Mar-06 10:43 
GeneralRe: Dataview question Pin
Tom Wright17-Mar-06 10:47
Tom Wright17-Mar-06 10:47 
GeneralRe: Dataview question Pin
Tom Wright17-Mar-06 11:04
Tom Wright17-Mar-06 11:04 
Questionplease help C#.NET 2003 Pin
ap_sa17-Mar-06 10:11
ap_sa17-Mar-06 10:11 

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.