SkiaSharp icon indicating copy to clipboard operation
SkiaSharp copied to clipboard

[QUESTION] Draw surface to a canvas region?

Open AquilaAbriel opened this issue 3 years ago • 0 comments

As stated in the title, I would like to draw the content of one surface to another surface canvas region.

I already found the Surface.Draw() method, which allows me to specify a SKCanvas to draw to. The method also requires a [x] and [y] parameter to specify "where" to draw to, but no [width] and [height].

So long story short, how do I "scale" while drawing my surface to another canvas?

Also, is there a way to specify a source region? So I can specify what region of my surface I want to draw to another canvas.

AquilaAbriel avatar Aug 07 '22 15:08 AquilaAbriel