Click or drag to resize

ASPGraphicsUtilsWriteToOutputAsPNG Method (Image, HttpResponse)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Writes an image to an HttpResponse stream as a PNG.

Namespace:  Telogis.GeoBase.ImageUtils
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public static void WriteToOutputAsPNG(
	Image bm,
	HttpResponse response
)

Parameters

bm
Type: System.DrawingImage
The Image to be written.
response
Type: System.WebHttpResponse
The HttpResponse to write to.
Remarks
You can not write a PNG directly to a ResponseStream because the PNG encoder needs a seekable stream, and the response stream is not seekable.
See Also