enthought / enable

Enable: low-level drawing and interaction
Other
91 stars 45 forks source link

Standardize pixel buffer access #1049

Open corranwebster opened 1 year ago

corranwebster commented 1 year ago

For Kiva backends which store values in a buffer, we'd like a standard way to access the bytes as a buffer (ideally as a NumPy array). Many backends have bmp_array attribute holding this (which is checked for when rendering some images), but others have a pixel_map instead with methods for accessing the data.