FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

skia-python/docs/development.rst at main · skia-python/skia-python · GitHub

Latest commit

 

History

History
35 lines (24 loc) · 1.12 KB

File metadata and controls

35 lines (24 loc) · 1.12 KB

Development

Python binding design

skia-python is built upon pybind11. Python bindings are mostly plain conversion from Skia C++ API. Function names remain the same.

A few differences are:

  • All bindings reside in skia module.
  • Removes class name prefix Sk; e.g., SkCanvas is skia.Canvas.
  • Some method signatures adapt to Python style; e.g.,
  • NumPy export method is added to Surface, Canvas, Image.
  • Buffer protocol support in Bitmap, Pixmap.

Contributing

Development happens at GitHub. Feel free to post to issues or make PR.


Back | FazBrowse Home | New Git URL