Hello ,
When I try to export PrintingLayer to JPEG the generated image is dark while the TIF one is fine.
I’ve attached a sample that shows our layer and contains export codes.
Regards
Export_Dark.zip (55 KB)
Export to JPEG
Hi Shaahin,
Thanks for your sample, that shows the problem clearly.
Here we have a topic about black background, thinkgeo.com/forums/MapSuite/tabid/143/aft/10322/Default.aspx, as mentioned by James “the jpeg format couldn’t support transparent, so that caused the black background”.
So the solution shoud be change map type to PNG or add a background layer to print layer.
For example:
static RectangleShape AddShpFileToPrintLayer(MapPrinterLayer mapPrinterLayer, string shpFilePath)
{
BackgroundLayer bl = new BackgroundLayer(new GeoSolidBrush(GeoColor.StandardColors.WhiteSmoke));
mapPrinterLayer.Layers.Add(bl);
…
}
Regards,
Don