P
pamelafluente
If I would like to place in a page both text and image,
is it possible? And, in case, how would I correct the following
code ?
'tetx
Response.ContentType = "text.html"
Response.Write("Hello hello")
'image
Response.ContentType = "image/jpeg"
Dim b As New Bitmap(200, 200)
Dim g As Graphics = Graphics.FromImage(b)
g.FillRectangle(New SolidBrush(Color.Red), 0, 0, 200, 200)
b.Save(Response.OutputStream, ImageFormat.Jpeg)
g.Dispose()
b.Dispose()
is it possible? And, in case, how would I correct the following
code ?
'tetx
Response.ContentType = "text.html"
Response.Write("Hello hello")
'image
Response.ContentType = "image/jpeg"
Dim b As New Bitmap(200, 200)
Dim g As Graphics = Graphics.FromImage(b)
g.FillRectangle(New SolidBrush(Color.Red), 0, 0, 200, 200)
b.Save(Response.OutputStream, ImageFormat.Jpeg)
g.Dispose()
b.Dispose()