Image Questions...

S

Stan Sainte-Rose

Hi
I would like to thank Jon about my previous post.

I have another question about image that I transform on fly.

I use a routine like this :
Dim bmp As Bitmap = Drawing.Image.FromFile(OriginalFile)
Dim g As Graphics = Graphics.FromImage(bmp)
g.DrawString("s", New Font("Arial", 12,
FontStyle.Italic), _
SystemBrushes.WindowText, New PointF(100, 100))
g.ResetTransform()
bmp.Save(Response.OutputStream, ImageFormat.Jpeg)
g.Dispose()
bmp.Dispose()

I would like to display the image into a Cell tab.
My idea was to add a Image Control in the tab cell
and use the ImageUrl property.
But when I try this :
bmp.Save("FileName", ImageFormat.Jpeg)
I get an GDI error (ExternalException (0x80004005) )

Any Help ?

Stan
 
J

Janaka

Stan

Do you know what the exception is actually getting caused by? It could be a
number of things. Quite possibly its just that the ASPNET user doesn't have
security privileges to create images on the given directory.

Janaka
 

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

Top