Hi,
I get the following exception when I minimize and then maximize a map with a LegendAdornmentLayer on it. I’m using version 10.
System.ArgumentException
HResult=0x80070057
Message=Parameter is not valid.
Source=System.Drawing
StackTrace:
at System.Drawing.Bitmap…ctor(Int32 width, Int32 height, PixelFormat format)
at hyY=.jyY=.CreateDefault(Int32 width, Int32 height)
at ThinkGeo.MapSuite.Layers.LegendAdornmentLayer.DrawCore(GeoCanvas canvas, Collection1 labelsInAllLayers) at ThinkGeo.MapSuite.Layers.Layer.lic=(GeoCanvas canvas, Collection
1 labelsInAllLayers)
at ThinkGeo.MapSuite.Layers.Layer.Draw(GeoCanvas canvas, Collection`1 labelsInAllLayers)
at ThinkGeo.MapSuite.WinForms.AdornmentOverlay.DrawCore(GeoCanvas canvas)
at ThinkGeo.MapSuite.WinForms.Overlay.yFU=(GeoCanvas canvas)
at ThinkGeo.MapSuite.WinForms.Overlay.Draw(GeoCanvas canvas)
at ThinkGeo.MapSuite.WinForms.WinformsMap.h1U=(Graphics graphics, RectangleShape extent, Overlay overlay)
at ThinkGeo.MapSuite.WinForms.WinformsMap.gFU=(RectangleShape drawingExtent, RectangleShape extent)
at ThinkGeo.MapSuite.WinForms.WinformsMap.n1U=(RectangleShape extent)
at ThinkGeo.MapSuite.WinForms.WinformsMap.iFU=(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
at System.Windows.Forms.Control.UpdateBounds()
at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
This exception was originally thrown at this call stack:
System.Drawing.Bitmap.Bitmap(int, int, System.Drawing.Imaging.PixelFormat)
hyY=.jyY=.CreateDefault(int, int)
ThinkGeo.MapSuite.Layers.LegendAdornmentLayer.DrawCore(ThinkGeo.MapSuite.Drawing.GeoCanvas, System.Collections.ObjectModel.Collection<ThinkGeo.MapSuite.Styles.SimpleCandidate>)
ThinkGeo.MapSuite.Layers.Layer.lic=(ThinkGeo.MapSuite.Drawing.GeoCanvas, System.Collections.ObjectModel.Collection<ThinkGeo.MapSuite.Styles.SimpleCandidate>)
ThinkGeo.MapSuite.Layers.Layer.Draw(ThinkGeo.MapSuite.Drawing.GeoCanvas, System.Collections.ObjectModel.Collection<ThinkGeo.MapSuite.Styles.SimpleCandidate>)
ThinkGeo.MapSuite.WinForms.AdornmentOverlay.DrawCore(ThinkGeo.MapSuite.Drawing.GeoCanvas)
ThinkGeo.MapSuite.WinForms.Overlay.yFU=(ThinkGeo.MapSuite.Drawing.GeoCanvas)
ThinkGeo.MapSuite.WinForms.Overlay.Draw(ThinkGeo.MapSuite.Drawing.GeoCanvas)
ThinkGeo.MapSuite.WinForms.WinformsMap.h1U=(System.Drawing.Graphics, ThinkGeo.MapSuite.Shapes.RectangleShape, ThinkGeo.MapSuite.WinForms.Overlay)
ThinkGeo.MapSuite.WinForms.WinformsMap.gFU=(ThinkGeo.MapSuite.Shapes.RectangleShape, ThinkGeo.MapSuite.Shapes.RectangleShape)
…
[Call Stack Truncated]
Thanks,
Damian