-
Notifications
You must be signed in to change notification settings - Fork 5
Images
Hervé Bitteur edited this page May 4, 2017
·
5 revisions
The image of a sheet of music is recorded as one image file:
-
We today impose the "png" format. In the future, we should be able to support any major format, provided that:
- The format allows to always get the same image, pixel-wise. For example, some "pdf" encodings lead to image variations depending on the renderer being used at read time.
- A multi-page file format (like "pdf" or "tiff") allows a URL to point directly to a specific page within the file.
-
Image type is gray image with each pixel coded on one byte (gray integer value in 0..255 range, with 0 for full black and 255 for full white). This is the Java type named
BufferedImage.TYPE_BYTE_GRAY
.
Remark: Using gray values (rather than plain black & white binary values) allows to cope with anti-aliasing effects should the initial image need any rescaling to fit with predefined interline value.