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

offer an API to get the origin binaryData of bitMap #13

Open
izyForever opened this issue Feb 22, 2023 · 2 comments
Open

offer an API to get the origin binaryData of bitMap #13

izyForever opened this issue Feb 22, 2023 · 2 comments

Comments

@izyForever
Copy link

Maybe you guys can offer an API to get the origin binaryData of bitMap, which could avoid the Waste of storage space and seems easy to implement. If you agree, I think I could do this.

@izyForever
Copy link
Author

izyForever commented Feb 22, 2023

Just need to visit the value of bitmap.
example:

originData = bm.bitmap # get the bin data, where bm is a Bitmap object.

But I think is prefered to offer user an API instead of property access.

@izyForever
Copy link
Author

cbfbdce734499d904693a2c9542c16e4

I find this annoying problem, you can't use the hexstring fom itself to new a bitmap object which is quite confusing!
And the fromstring function to new bitmap object seems to have opposite order in bytes data. For example, the '1000' create a bitmap which calls test(0) function get False, while it gets True when calls test(3) function, it is kind of counterintuitive XD!
BeSize I thibk the API is not powerful enough to support usual desire.
I am working on fixing the problem, are you still mataining this project?

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

1 participant