Click here to Skip to main content
15,889,315 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
Questiontextbox in password mode Pin
shabonaa14-Apr-07 7:48
shabonaa14-Apr-07 7:48 
AnswerRe: textbox in password mode Pin
Dmitry Khudorozhkov14-Apr-07 8:06
Dmitry Khudorozhkov14-Apr-07 8:06 
QuestionUrgent Help with GridView Control. Pin
Elizma14-Apr-07 4:24
Elizma14-Apr-07 4:24 
AnswerRe: Urgent Help with GridView Control. Pin
Sathesh Sakthivel14-Apr-07 5:00
Sathesh Sakthivel14-Apr-07 5:00 
GeneralRe: Urgent Help with GridView Control. Pin
Elizma14-Apr-07 5:11
Elizma14-Apr-07 5:11 
GeneralRe: Urgent Help with GridView Control. Pin
TRK@UK14-Apr-07 8:22
TRK@UK14-Apr-07 8:22 
GeneralRe: Urgent Help with GridView Control. Pin
Elizma14-Apr-07 10:26
Elizma14-Apr-07 10:26 
Questionauto increment a unique primary key Pin
ramakant_135214-Apr-07 2:44
ramakant_135214-Apr-07 2:44 

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.