Skip to content

Commit 13ecabb

Browse files
committed
PDFBOX-2941: show whether sRGB
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1932632 13f79535-47bb-0310-9956-ffa450edef68
1 parent 23bada2 commit 13ecabb

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

debugger/src/main/java/org/apache/pdfbox/debugger/colorpane/CSArrayBased.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ private void initUI()
123123
otherLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
124124
otherLabel.setFont(new Font(Font.MONOSPACED, Font.BOLD, 20));
125125
panel.add(otherLabel);
126+
127+
JLabel srgbLabel = new JLabel("sRGB: " + ((PDICCBased) colorSpace).isSRGB());
128+
srgbLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
129+
srgbLabel.setFont(new Font(Font.MONOSPACED, Font.BOLD, 20));
130+
panel.add(srgbLabel);
126131
}
127132
}
128133

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDICCBased.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,10 +536,9 @@ public void setMetadata(COSStream metadata)
536536
}
537537

538538
/**
539-
* Internal accessor to support indexed raw images.
540539
* @return true if this colorspace is sRGB.
541540
*/
542-
boolean isSRGB()
541+
public boolean isSRGB()
543542
{
544543
return isRGB;
545544
}

0 commit comments

Comments
 (0)