Hi, I have a GDIPlusRaster layer coming from am image stream. Once the map is created, I would like to be able to move/scale the image to a new location, either before or after the image is drawn. I only have access to the image stream when the map is created. What would be the best way for me to go about doing this?
Moving a GDIPlusRasterLayer after the map has been drawn
Hi Joshua,
2 options here,
-
Create the customized GdiPlusGeoCanvas, and overwrite the methods “DrawWorldImageWithoutScaling” and “DrawWorldImage”, there it has the screen coordinates and you can do any move or scale up/down the bitmap as you want.
-
Take the advantage of Projection, such as RotationProjection etc, but Map Suite doesn’t have built-in TanslateTransformProjection and ScaleProjection, you may have to create it by yourself.
Personally, I prefer the 1st option, please take a try and let me know if any problems or questions.
Regards,
Johnny