Click here to Skip to main content
15,911,030 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Getting logged on username Pin
#realJSOP17-Aug-07 6:28
professional#realJSOP17-Aug-07 6:28 
GeneralRe: Getting logged on username Pin
digsy_17-Aug-07 7:10
digsy_17-Aug-07 7:10 
GeneralRe: Getting logged on username Pin
Jon Sagara17-Aug-07 7:46
Jon Sagara17-Aug-07 7:46 
AnswerRe: Getting logged on username Pin
kaushal_prabhakar17-Aug-07 19:38
kaushal_prabhakar17-Aug-07 19:38 
Questionjavascript menu and dropdown list problem in IE Pin
swapnilek17-Aug-07 5:00
swapnilek17-Aug-07 5:00 
AnswerRe: javascript menu and dropdown list problem in IE Pin
Selva198317-Aug-07 5:46
Selva198317-Aug-07 5:46 
GeneralRe: javascript menu and dropdown list problem in IE Pin
swapnilek17-Aug-07 18:50
swapnilek17-Aug-07 18:50 
QuestionMakeTransparent Method on Jpeg images Pin
sabafana17-Aug-07 4:50
sabafana17-Aug-07 4:50 
I am combining 2 images on the fly and wanting to make the background of the 2nd image trasnparent. When the image is a gif the MakeTransparent Method works well but when its a jpg, it is very rough around the edges.
Any ideas will be helpful.

Jpg Example. We removed the background on the card case

<%<br />
Bitmap bitMapImage = new System.Drawing.Bitmap(Server.MapPath("photos/3092.jpg") );<br />
Graphics graphicImage = Graphics.FromImage(bitMapImage); <br />
graphicImage.SmoothingMode = SmoothingMode.AntiAlias;<br />
graphicImage.DrawString( "LOGO HERE", new Font("Arial", 12,FontStyle.Bold ), SystemBrushes.WindowText, new Point( 40, 150 ) );<br />
Bitmap myBitmap = new System.Drawing.Bitmap(Server.MapPath("upload/3003.jpg") );<br />
Color backColor = myBitmap.GetPixel(1, 1);<br />
myBitmap.MakeTransparent(backColor);<br />
graphicImage.DrawImage(myBitmap, 0, 40, myBitmap.Width, myBitmap.Height);<br />
Response.ContentType="image/jpeg";<br />
bitMapImage.Save(Response.OutputStream, ImageFormat.Jpeg);<br />
myBitmap.Save(Response.OutputStream, ImageFormat.Jpeg);<br />
graphicImage.Dispose();<br />
bitMapImage.Dispose();<br />
myBitmap.Dispose();<br />
%>

QuestionIs There Something I Don't Understand? Pin
#realJSOP17-Aug-07 4:34
professional#realJSOP17-Aug-07 4:34 
AnswerRe: Is There Something I Don't Understand? Pin
Talal Sultan17-Aug-07 4:42
Talal Sultan17-Aug-07 4:42 
AnswerRe: Is There Something I Don't Understand? Pin
Christian Graus17-Aug-07 11:48
protectorChristian Graus17-Aug-07 11:48 
GeneralRe: Is There Something I Don't Understand? Pin
DavidNohejl18-Aug-07 8:18
DavidNohejl18-Aug-07 8:18 
GeneralRe: Is There Something I Don't Understand? Pin
Urs Enzler19-Aug-07 1:03
Urs Enzler19-Aug-07 1:03 
QuestionSharing Data between window app and web app Pin
Kaushal_anand2617-Aug-07 4:10
Kaushal_anand2617-Aug-07 4:10 
AnswerRe: Sharing Data between window app and web app Pin
Vasudevan Deepak Kumar17-Aug-07 4:23
Vasudevan Deepak Kumar17-Aug-07 4:23 
QuestionVideo Player!!! Pin
kibromg17-Aug-07 4:04
kibromg17-Aug-07 4:04 
AnswerRe: Video Player!!! Pin
Vasudevan Deepak Kumar17-Aug-07 4:24
Vasudevan Deepak Kumar17-Aug-07 4:24 
GeneralRe: Video Player!!! Pin
kibromg17-Aug-07 5:10
kibromg17-Aug-07 5:10 
Questionimage url help Pin
boyindie17-Aug-07 3:58
boyindie17-Aug-07 3:58 
AnswerRe: image url help Pin
Imran Khan Pathan17-Aug-07 4:06
Imran Khan Pathan17-Aug-07 4:06 
GeneralRe: image url help Pin
boyindie17-Aug-07 4:11
boyindie17-Aug-07 4:11 
GeneralRe: image url help Pin
Imran Khan Pathan17-Aug-07 4:13
Imran Khan Pathan17-Aug-07 4:13 
GeneralNewbie Advice for Enter Page Pin
Brady Kelly17-Aug-07 3:37
Brady Kelly17-Aug-07 3:37 
GeneralRe: Newbie Advice for Enter Page Pin
Talal Sultan17-Aug-07 4:03
Talal Sultan17-Aug-07 4:03 
GeneralRe: Newbie Advice for Enter Page Pin
Brady Kelly17-Aug-07 4:09
Brady Kelly17-Aug-07 4:09 

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.