diff --git a/MapImages/Shared/WorldFileImage.cs b/MapImages/Shared/WorldFileImage.cs index 25909662..3b3fdd75 100644 --- a/MapImages/Shared/WorldFileImage.cs +++ b/MapImages/Shared/WorldFileImage.cs @@ -155,6 +155,11 @@ namespace MapControl.Images public void SetImage(Image image) { + if (Rotation != 0d) + { + throw new InvalidOperationException("Rotation must be zero."); + } + image.Source = Bitmap; image.Stretch = Stretch.Fill;