Skip to content
  • Emmanuele Bassi's avatar
    image: Add a data setter using GBytes · 65c8b116
    Emmanuele Bassi authored
    The plain C bytes array, while convenient from a C perspective, is not
    well handled by language bindings: the length of the array is not
    specified, and it's only just implied by the image data size, rowstride,
    and pixel format.
    
    GBytes is a read-only bytes buffer that has an implicit length; we can
    use it as the storage medium so that language bindings can actually
    function correctly.
    65c8b116