Click here to Skip to main content
15,917,481 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: page type in ASP.NET Pin
hariram2818-Apr-07 7:20
hariram2818-Apr-07 7:20 
GeneralRe: page type in ASP.NET Pin
RichardGrimmer18-Apr-07 21:45
RichardGrimmer18-Apr-07 21:45 
QuestionPopulating and Implementing 4 DropDown Listboxes from one table on the Web Form Pin
koonda00715-Apr-07 3:45
koonda00715-Apr-07 3:45 
AnswerRe: Populating and Implementing 4 DropDown Listboxes from one table on the Web Form Pin
Chetan Ranpariya19-Apr-07 23:43
Chetan Ranpariya19-Apr-07 23:43 
GeneralRe: Populating and Implementing 4 DropDown Listboxes from one table on the Web Form Pin
koonda00721-Apr-07 0:25
koonda00721-Apr-07 0:25 
QuestionDisabled textbox's text disappear after refresh Pin
customise14-Apr-07 22:43
customise14-Apr-07 22:43 
AnswerRe: Disabled textbox's text disappear after refresh Pin
Guffa15-Apr-07 0:10
Guffa15-Apr-07 0:10 
AnswerRe: Disabled textbox's text disappear after refresh Pin
TRK@UK15-Apr-07 4:09
TRK@UK15-Apr-07 4:09 
QuestionAjax Enabled TextBox Pin
monirkuet2414-Apr-07 18:40
monirkuet2414-Apr-07 18:40 
AnswerRe: Ajax Enabled TextBox Pin
Naveed Kamboh15-Apr-07 3:30
Naveed Kamboh15-Apr-07 3:30 
GeneralResize, Convert and Save Images... Pin
code-frog14-Apr-07 13:01
professionalcode-frog14-Apr-07 13:01 
GeneralRe: Resize, Convert and Save Images... Pin
Christian Graus15-Apr-07 12:18
protectorChristian Graus15-Apr-07 12:18 
GeneralRe: Resize, Convert and Save Images... Pin
code-frog15-Apr-07 14:16
professionalcode-frog15-Apr-07 14:16 
GeneralRe: Resize, Convert and Save Images... Pin
Christian Graus15-Apr-07 14:47
protectorChristian Graus15-Apr-07 14:47 
GeneralRe: Resize, Convert and Save Images... Pin
code-frog15-Apr-07 14:54
professionalcode-frog15-Apr-07 14:54 
GeneralRe: Resize, Convert and Save Images... Pin
Christian Graus15-Apr-07 15:03
protectorChristian Graus15-Apr-07 15:03 
The one trick is getting to set the quality setting on a jpeg.

http://support.microsoft.com/kb/324790[^] is a link that shows you how to do that. As a result, it also shows how to save JPEG files Smile | :) To resize them, you just use Graphics.FromBitmap ( or FromImage ? ) to get a graphics object that contains a bitmap ( which you first create, to the right size for you ). Then you use the Bitmap.FromFile or the Bitmap constructor that takes a path to load your file, whatever it is, and a variation of teh DrawImage method on the graphics class that lets you set the position and new size. The rest is just some simple math to work out where to draw the image so it's at the correct aspect ration and within your fixed bitmap.

I believe the bitmap class has a method that is used to paint it all your background color, or FillRectangle will work just fine.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

QuestionDownload Access DB Pin
Ibuprofen14-Apr-07 11:26
Ibuprofen14-Apr-07 11:26 
AnswerRe: Download Access DB Pin
George L. Jackson14-Apr-07 15:52
George L. Jackson14-Apr-07 15:52 
GeneralRe: Download Access DB Pin
Ibuprofen15-Apr-07 3:00
Ibuprofen15-Apr-07 3:00 
GeneralRe: Download Access DB Pin
George L. Jackson15-Apr-07 3:14
George L. Jackson15-Apr-07 3:14 
GeneralRe: Download Access DB Pin
Ibuprofen15-Apr-07 3:17
Ibuprofen15-Apr-07 3:17 
GeneralRe: Download Access DB Pin
Ibuprofen16-Apr-07 6:22
Ibuprofen16-Apr-07 6:22 
GeneralRe: Download Access DB Pin
Chetan Ranpariya19-Apr-07 23:51
Chetan Ranpariya19-Apr-07 23:51 
QuestionLogin Control Pin
govindkedia14-Apr-07 10:49
govindkedia14-Apr-07 10:49 
AnswerRe: Login Control Pin
Ibuprofen15-Apr-07 3:27
Ibuprofen15-Apr-07 3:27 

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.