Floodfill on SKBitmap

45 views
Skip to first unread message

Jesus Garza

unread,
May 31, 2022, 7:01:40 PM5/31/22
to skia-discuss

Hi,

I am loading a raster image on a SKBitmap over which I need to do a floodfill (https://en.wikipedia.org/wiki/Flood_fill). Is there an API in Skia that executes something like that?

Thanks,

Jesus

Brian Osman

unread,
Jun 1, 2022, 8:34:40 AM6/1/22
to skia-d...@googlegroups.com
Hi,
Sorry, but there's no built-in functionality for that. You could certainly implement the algorithm yourself (SkBitmap provides direct access to the underlying pixel data), but at that point Skia is really just an image decoder.


--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/8c6095ef-b37b-4f54-a1bb-f2f45b4efe4dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages