When I use the following code in a web page it works fine until my
Bitmap size gets to a certain size, e.g. 5214 x 3223. Then I get a red
cross, but no run time error occurs. What is the maxmum size of the
bitmap and how do I trap for the error?
Code is here. The actual details of what is draw is not relevant.
Dim objBitmap As Bitmap = New Bitmap(5214, 3223)
Dim objGraphics As Graphics = Graphics.FromImage(objBitmap)
' DRAWING CODE HERE
Response.ContentType = "image/gif"
objGraphics.DrawImage(objBitmap, 0, 0, objBitmap.Width,
objBitmap.Height)
objBitmap.Save(Response.OutputStream, ImageFormat.Gif)
objGraphics.Dispose()
objBitmap.Dispose()