Hi there,
I used the following line of code to export an mxd to PNG 8 bit (i am creating tiles)... BUT i cant seem to set the background to transparent (or No Color)... any clue as to what parameter i should use?!
arcpy.mapping.ExportToPNG(mxd, pngpath, df, df_export_width = 256, df_export_height = 256, resolution = 70, world_file=False, color_mode = "8-BIT_PALETTE", background_color = "No Color", transparent_color = "No Color")
I read on other forum threads that by setting the background color and transparent color to the same value should do the trick... it does not work in my case.
The data-frame background color is set to Hollow...
Any tips would be great :-)
I used the following line of code to export an mxd to PNG 8 bit (i am creating tiles)... BUT i cant seem to set the background to transparent (or No Color)... any clue as to what parameter i should use?!
Quote:
arcpy.mapping.ExportToPNG(mxd, pngpath, df, df_export_width = 256, df_export_height = 256, resolution = 70, world_file=False, color_mode = "8-BIT_PALETTE", background_color = "No Color", transparent_color = "No Color")
The data-frame background color is set to Hollow...
Any tips would be great :-)