Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Bitmap.fromHeadless() #15

Open
xcreateadmin opened this issue Apr 16, 2022 · 1 comment
Open

Support for Bitmap.fromHeadless() #15

xcreateadmin opened this issue Apr 16, 2022 · 1 comment

Comments

@xcreateadmin
Copy link

Hey, do you have any plans to support

Bitmap.fromHeadless(width, height, bytes)
and

bitmap.buildHeaded().buffer.asUint8List()

Like in the pub package bitmap

The pub bitmap package doesn't support web so bit_array can become a good alternative

@isoos
Copy link
Owner

isoos commented Apr 16, 2022

This package is not for image manipulation, rather, it is a base library for low-level bit indexes.

I think the we have some overlap between image bitmaps and bit arrays, but the abstractions should be done in one level higher, and not in this library. Especially where image bitmaps have more that two colors, and the operations are not bitwise, rather applied on a subset of pixels...

I don't see how your request would fit here, but I could be convinced, if it applies to bit arrays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants