Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

blank System.Drawing.Image

Status
Not open for further replies.

mjd3000

Programmer
Apr 11, 2009
136
GB
How would you go about creating a blank System.Drawing.Image object (i.e. an image with just a white backcolour)?
 
You should be able to just create the object and not actually set a source image.

I am assuming you need to create this dynamically. If not, I do that regularly by creating an HTML img tag, again without an image source. I often add the src dynamically at runtime. To do that you need to set the object to runat server and give it an id.

Code:
<img runat="server" id="htmlBlankImage" alt="Blank Image" src="" />

HTH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top