sammycage / plutovg

Tiny 2D vector graphics library in C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for bitmap rendering

ivantishchenko opened this issue · comments

Thank you for your work on plutovg.

Would it be possible to add support for rendering bitmaps?

Could you provide more details about the specific requirements or use cases you have in mind for rendering bitmaps in plutovg?

Thank you for your reply @sammycage

The requirement is to load a PNG using stb image into an RGBA bitmap and then draw every pixel of this bitmap on a canvas along with other geometrical shapes.

A use-case is to use PlutoVG in lunasvg to render a composition of geometrical vector shapes combined with raster images. Many SVGs use embedded raster images inside a tag encoded in base64.

sammycage/lunasvg#113
sammycage/lunasvg#13