public override void DrawLayer(BitmapCanvas canvas, DenseMatrix parentMatrix, byte parentAlpha) { var bitmap = Bitmap; if (bitmap == null) { return; } _paint.Alpha = parentAlpha; canvas.Save(); canvas.Concat(parentMatrix); RectExt.Set(ref _src, 0, 0, PixelWidth, PixelHeight); RectExt.Set(ref _dst, 0, 0, (int)(PixelWidth * _density), (int)(PixelHeight * _density)); canvas.DrawBitmap(bitmap, _src, _dst, _paint); canvas.Restore(); }