Select to view content in your preferred language

get a printable format (.png or jpeg) of WMS layer.

655
0
09-06-2010 11:06 PM
DushyantKotecha
New Contributor
I'm trying to get an image of all the layers in the Map for my Area of interest. I mean which is visible on the screen. I'm able get it with ArcGISTiled layer and Dynamic layer as byte array, get memory stream from byte array and use System.Drawing.Bitmap.FromStream(stream) to get the image format. But not able to do the same with WMS layer. I could get byte array of WMS layer by using request=GetMap and other required parameters. Converted it to MemoryStream object. Tried to pass it in System.Drawing.Bitmap.FromStream(stream). Here it gave me exception that "Parameter is not valid". Can anybody help me out here?

I'm using Silverlight API and doing this image processing operation in my WCF service.
0 Kudos
0 Replies