Skip to content

Speckles in the canvas #815

@gktval

Description

@gktval

I have an SKContol in a Windows Form. After drawing the bitmap to the canvas and Invalidating the control, I am often seeing speckles in the image similar to this:

image

This happens on the PaintSurfaceEvent. I also see these random speckles when drawing an empty bitmap to the canvas. Here is the code I use to draw to the bitmap to the canvas in the paint event:

Dim canvas As SKCanvas = e.Surface.Canvas
canvas.Clear(SKColors.White)
Dim bitmap As New SKBitmap(e.Info.Rect.Width, e.Info.Rect.Height)
canvas.DrawBitmap(bitmap, 0, 0)

I can also verify that the speckles also appear on Android device too, not just windows.
Is there a work around to get rid of this, or is this a problem with drawing?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions