Not sure if this is a bug or something that we aren’t doing correctly or misunderstanding. If we create a point style using an image file as the point then we set the ImageScale value to a value other 1.0f we get the following exception:
System.ArgumentOutOfRangeException: The input double value is out of range. Parameter name: widthInScreen
Here is the code that we are using to produce the error:
SusaPointStyle newPointStyle = new SusaPointStyle();
newPointStyle.PointType = PointType.Bitmap;
newPointStyle.Image = new GeoImage(imageFileTextBox.Text);
newPointStyle.ImageScale = (double)imageScaleUpDown.Value;
stylePreview.Image = new Bitmap(stylePreview.Width, stylePreview.Height);
GeoCanvas gc = new GdiPlusGeoCanvas();
gc.BeginDrawing(stylePreview.Image, new RectangleShape(0, (double)stylePreview.Image.Height, (double)stylePreview.Image.Width, 0));
try {
newPointStyle.DrawSample(gc);
}
catch (Exception ex) {
//ex.Message says "System.ArgumentOutOfRangeException: The input double value is out of range. Parameter name: widthInScreen."
}
John