0

I am creating a bitmap using the System.Drawing namespace and rendering as a jpeg to the browser with

HttpContext.Current.Response.OutputStream.Write(buffer, 0, buffer.Length);

The rendered jpeg takes up the whole screen - and I want to make a div appear over the graphic after the graphic has loaded. Is this possible given that no html is rendered?

Martin Smellworse
  • 1,702
  • 3
  • 28
  • 46

1 Answers1

0

I don't think it is possible to do that.

You could use an HttpHandler for your image, then have whatever you want below it:

<img src='imageHandler.ashx' />
<div id='otherContent'>
   all other stuff here
</div>

For more information on how to use an HttpHandler in this case see: bytearray to image asp.net

Community
  • 1
  • 1
martinwnet
  • 571
  • 2
  • 4
  • 10