Bitmap as a Image web control

B

Beb

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top