Programmatically changing an ArcGIS Server map resource's background from transparent to opaque makes the background color white.
Last Published: August 25, 2014No Product Found
Bug ID Number
NIM010186
Submitted
July 6, 2007
Last Modified
June 5, 2024
Applies to
No Product Found
Version found
9.2
Status
Will Not Be Addressed
The development team has considered the issue or request and concluded it will not be addressed. The issue's Additional Information section may contain further explanation.
Additional Information
No Public Explanation
Workaround
Cloning the map resource and changing transparency settings on the clone (then replacing the original) will yeild the expected results. For example: MapResourceItem mriNew = (MapResourceItem)mri.Clone(); mriNew.DisplaySettings.ImageDescriptor.TransparentBackground = false; mriNew.DisplaySettings.ImageDescriptor.TransparentColor = System.Drawing.Color.Empty; MapResourceManager1.ResourceItems.Remove(mri); MapResourceManager1.ResourceItems.Insert(index + 1, mriNew); MapResourceManager1.CreateResource(mriNew); MapResourceManager1.Refresh(); Map1.Refresh();