Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-4187

Refactor LosslessFactory alpha

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.9, 3.0.0 PDFBox
    • 2.0.10, 3.0.0 PDFBox
    • PDModel
    • None

    Description

      While looking into the code for PDFBOX-4184 I noticed that we try to get the alpha data in different ways, despite that it is available in the main method when image.getRGB() is called. So I'm refactoring all this; as a side effect, my 16 bit change in PDFBOX-4184 is no longer needed.

      I'll commit this in two steps; 1) changing the main method and remove the ones that are no longer being used; 2) split the main method in a gray and a color code.

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: