Click here to Skip to main content
15,917,176 members
Home / Discussions / C#
   

C#

 
QuestionTwo console windows? Pin
hammackj9-Jul-04 11:13
hammackj9-Jul-04 11:13 
GeneralPassing Values Pin
Dylan van Heerden9-Jul-04 9:42
Dylan van Heerden9-Jul-04 9:42 
GeneralRe: Passing Values Pin
Dave Kreskowiak9-Jul-04 9:48
mveDave Kreskowiak9-Jul-04 9:48 
GeneralRe: Passing Values Pin
Anonymous9-Jul-04 22:54
Anonymous9-Jul-04 22:54 
GeneralRe: Passing Values Pin
Robert Rohde10-Jul-04 1:57
Robert Rohde10-Jul-04 1:57 
GeneralRe: Passing Values Pin
Colin Angus Mackay9-Jul-04 10:06
Colin Angus Mackay9-Jul-04 10:06 
GeneralRe: Passing Values Pin
Dylan van Heerden9-Jul-04 22:57
Dylan van Heerden9-Jul-04 22:57 
GeneralRe: Passing Values Pin
Michael P Butler10-Jul-04 0:28
Michael P Butler10-Jul-04 0:28 
GeneralIE Browser and IHTMLDocument2 Pin
brian hanf9-Jul-04 9:18
brian hanf9-Jul-04 9:18 
GeneralDisable windows shortcuts!?! Pin
QzRz9-Jul-04 7:46
QzRz9-Jul-04 7:46 
GeneralRe: Disable windows shortcuts!?! Pin
Dave Kreskowiak9-Jul-04 8:47
mveDave Kreskowiak9-Jul-04 8:47 
GeneralRe: Disable windows shortcuts!?! Pin
QzRz9-Jul-04 9:04
QzRz9-Jul-04 9:04 
Generalchange bitmap resolution Pin
kendao9-Jul-04 7:25
kendao9-Jul-04 7:25 
GeneralRe: change bitmap resolution Pin
Heath Stewart9-Jul-04 8:58
protectorHeath Stewart9-Jul-04 8:58 
GeneralRe: change bitmap resolution Pin
Werdna10-Jul-04 11:19
Werdna10-Jul-04 11:19 
I found that GetTumbnailImage doesn't do as good of a job resizing.
Here is some simple code that resized your image (but distorts if aspect ratio is different)
Bitmap resizeImage(Bitmap bmp, int width, int height)
{
Bitmap newBmp = new Bitmap(width, height);
Graphics g = Graphics.FromImage(newBmp);
g.InterpolationMode = InterpolationMode.HighQualityBicubic;
g.DrawImage(bmp, width, height);
g.Dispose();
return b;

}

setting InterpolationMode to HighQualityBicubic gives best results with quality, but it slow. You can look at other options for InterpolationMode.

If you're image is not the default 32bpp, you will have to set that in constructor to bitmap.
If you want different resolution (not the size), you can use SetResolution on the bitmap object.
GeneralCOM Object Pin
FlamTaps9-Jul-04 7:25
FlamTaps9-Jul-04 7:25 
GeneralRe: COM Object Pin
MilesAhead9-Jul-04 8:17
MilesAhead9-Jul-04 8:17 
GeneralRe: COM Object Pin
FlamTaps12-Jul-04 8:55
FlamTaps12-Jul-04 8:55 
GeneralRe: COM Object Pin
Anonymous12-Jul-04 9:37
Anonymous12-Jul-04 9:37 
GeneralRe: COM Object Pin
FlamTaps12-Jul-04 10:29
FlamTaps12-Jul-04 10:29 
GeneralRe: COM Object Pin
MilesAhead14-Jul-04 14:07
MilesAhead14-Jul-04 14:07 
GeneralImpersonation in C# question, please help! Pin
garfieldlee999-Jul-04 7:00
garfieldlee999-Jul-04 7:00 
GeneralRe: Impersonation in C# question, please help! Pin
Heath Stewart9-Jul-04 9:04
protectorHeath Stewart9-Jul-04 9:04 
GeneralProperty Grid Pin
machocr9-Jul-04 6:53
machocr9-Jul-04 6:53 
GeneralRe: Property Grid Pin
Heath Stewart9-Jul-04 9:07
protectorHeath Stewart9-Jul-04 9:07 

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.