I have a lot of instances where I override DrawCore…how do I do the same in V12?
Se example below:
protected override void DrawCore(GeoCanvas aCanvas)
{
this.CurrentExtent = aCanvas.CurrentWorldExtent;
if (this.Image == null || this.Image.Bitmap == null) return;
using (
Maps.TransformMatrix Matrix = new Maps.TransformMatrix(aCanvas.CurrentWorldExtent,
((System.Drawing.Bitmap)aCanvas.NativeImage).Size))
using (
System.Drawing.Graphics Gr =
System.Drawing.Graphics.FromImage((System.Drawing.Bitmap)aCanvas.NativeImage))
{
Gr.CompositingMode = System.Drawing.Drawing2D.CompositingMode.SourceCopy;
Gr.InterpolationMode = this.Smooth
? System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic
: System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor;
Gr.DrawImage(this.Image.Bitmap, System.Drawing.Rectangle.Round(Matrix.Transform(this.Image.Extent)));
}
this.BackgroundImage = Maps.BitmapColors.Copy((System.Drawing.Bitmap)aCanvas.NativeImage);
}