Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Draw on ImageButton control?


Message #1 by "Nguyen Ha Giang" <giang@c...> on Thu, 6 Jun 2002 11:18:44 +0700
This is a multi-part message in MIME format.

------=_NextPart_000_0107_01C20D4B.EB46A8E0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Dear all,
Could I draw something on ImageButton?. I want to customize my 
ImageControl and not using existed image file, and then using CGI+ to 
draw something. If could, please show me,
Thanks for reading!
 


Message #2 by Feduke Cntr Charles R <FedukeCR@m...> on Thu, 6 Jun 2002 09:31:48 -0400
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C20D5E.8291DF00
Content-Type: text/plain;
	charset="iso-8859-1"

    Yes, you can, in practice, draw an ImageButton.  Essentially what you do
is create a new Graphics from System.Drawing, use some of the stuff you find
in System.Drawing.Drawing2D to draw lines and text on the Graphics, then
save the Graphics to the output stream.  There are examples for doing this,
and I can give you a better example if you want to e-mail me at home (
webmaster@r... <mailto:webmaster@r...> ).
 
    Its also best to make a single *.aspx with the Content header of
"image/gif" or what-not to handle outputting graphics, and have your pages
have that *.aspx for the src attribute of the image button.
 
- Chuck

-----Original Message-----
From: Nguyen Ha Giang [mailto:giang@c...]
Sent: Thursday, June 06, 2002 12:19 AM
To: ASP+
Subject: [aspx] Draw on ImageButton control?


Dear all,
Could I draw something on ImageButton?. I want to customize my ImageControl
and not using existed image file, and then using CGI+ to draw something. If
could, please show me,
Thanks for reading!
  
--- Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to  



  Return to Index