|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Bitmap as a Image web controlquick question for you. Im a little new to web controls and im trying to have a control that returns a bitmap image. So i have created a web control library, added a control, have the following public class MyImage : System.Web.UI.WebControls.Image { Public Bitmap MyBitmap() { bitmap = new Bitmap( 300, 60, PixelFormat.Format32bppArgb); //........ // do some stuff return bitmap } } so how can i make it that the image control has the results from the MyBitmap method? or am i doing this totally wrong? The image control can only contain a URL. The URL does not have to be to an
image file, however. You can give it the URL to a special page that outputs the result of your bitmap function. Here's more info and a detailed example: http://SteveOrr.net/articles/ImproveYourImages.aspx Show quoteHide quote "Beb" <BenSc***@aemail4u.com> wrote in message news:1151321663.797016.162300@m73g2000cwd.googlegroups.com... > Hi Ya, > > quick question for you. Im a little new to web controls and im trying > to have a control that returns a bitmap image. > > So i have created a web control library, added a control, > > have the following > > public class MyImage : System.Web.UI.WebControls.Image > { > Public Bitmap MyBitmap() > { > bitmap = new Bitmap( > 300, > 60, > PixelFormat.Format32bppArgb); > //........ > // do some stuff > return bitmap > } > > > } > > > so how can i make it that the image control has the results from the > MyBitmap method? > > or am i doing this totally wrong? >
ValidationControl evaluationfunction ASP.NET 2.0
TextBox TextChanged Event Adding WebControl using a Button.... Custom Controls with non-String Attributes Responding to changes to controls in a Repeater Dynamically Creating A CSS Class Response.Redirect not being called after sending an email Web control which is a combobox with an editable portion asp.net 1.1 X 2.0 compatibility issue how to trigger an action by clicking in a field of detailsview? |
|||||||||||||||||||||||