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

24Bit bitmap support in EMF files #45

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

daRoof
Copy link

@daRoof daRoof commented Jan 22, 2018

The current implementation of the EMFImageLoader lacks support for bitmaps in 24-bit pixel format.
This can be easily cured.

The current implementation lacks support for bitmaps in 24-bit pixel format.
This can be easily cured.
Refactoring.
Introduced methods, each one responsible for EMF images of a certain bit length.
The EMFImageLoader is called multiple times without providing a BlendFunction. see freehep#43
This causes a NPE, in case the image is a 32 bit EMF.
I don't know if 0xFF is the correct default value, but at least this fixes the NPE.
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

Successfully merging this pull request may close these issues.

1 participant