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

Image format using 256 levels of gray #31

Open
hbitteur opened this issue Sep 25, 2017 · 3 comments
Open

Image format using 256 levels of gray #31

hbitteur opened this issue Sep 25, 2017 · 3 comments
Assignees

Comments

@hbitteur
Copy link
Contributor

Could we get gray images (256 gray values on 1 byte) rather than the ARGB color model on 4 bytes.

@nasehim7
Copy link

Here we are basically talking about saving the png's in Format_GrayScale8 if we have our OMR flag set and not save in ARGB32_Premultiplied. It can be possible with the master using convertToFormat() method of QImage but for MuseScore versions which use Qt version below 5.5, this simple conversion can't be possible. I have done this change for master in my current branch nasehim7/timeSigBranch and we have an active PR: musescore/MuseScore#3669.

Incase, there is anything that I am missing, Kindly let me know :)

@hbitteur
Copy link
Contributor Author

Sorry, I'm not familiar with these C++ names.
The target format (in Java) would be BufferedImage.TYPE_BYTE_GRAY (an unsigned byte grayscale image, non-indexed).
So the word "GrayScale8" sounds (but only sounds) OK to me. That's all I can say.

@nasehim7
Copy link

nasehim7 commented Jun 27, 2018 via email

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

No branches or pull requests

4 participants