public class PBoxJPEG2000 extends PBoxExternal implements JPEG2000
| Modifier and Type | Field and Description |
|---|---|
protected static Long |
DEFAULT_BIT_DEPTH |
protected static Boolean |
DEFAULT_BPCC_BOX_PRESENT |
protected static PDColorSpace |
DEFAULT_COLOR_SPACE |
protected static Long |
DEFAULT_COLR_ENUM_CS |
protected static Long |
DEFAULT_COLR_METHOD |
protected static Long |
DEFAULT_NR_COLOR_CHANNELS |
protected static Long |
DEFAULT_NR_COLOR_SPACE_SPECS |
protected static Long |
DEFAULT_NR_COLOR_SPACES_WITH_APPROX_FIELD |
static String |
JPEG_2000_TYPE |
contextDependent| Modifier and Type | Method and Description |
|---|---|
static PBoxJPEG2000 |
fromStream(InputStream stream,
PDDocument document,
PDFAFlavour flavour)
Creates new PBoxJPEG2000 object that implements JPEG2000 object from the
model from the given jp2 image stream
|
Long |
getbitDepth()
image bit depth
|
Boolean |
getbpccBoxPresent()
true if the 'bpcc' box is present and, thus, the bit depth is not constant across all components
|
Long |
getcolrEnumCS()
EnumCS (enumerated color space) field of in the 'colr' box specification with APPROX field equal to 0x01
|
Long |
getcolrMethod()
the METH entry in the 'colr' box specification with APPROX field equal to 0x01
|
PDColorSpace |
getImageColorSpace() |
Long |
getnrColorChannels()
the number of colour channels
|
Long |
getnrColorSpaceSpecs()
the number of colour space specifications
|
Long |
getnrColorSpacesWithApproxField()
the number of colour space specifications with APPROX field set to 0x01
|
getExtraContext, getID, getLinkedObjects, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExtraContext, getID, getLinkedObjects, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependentpublic static final String JPEG_2000_TYPE
protected static final Long DEFAULT_NR_COLOR_CHANNELS
protected static final Long DEFAULT_NR_COLOR_SPACE_SPECS
protected static final Long DEFAULT_NR_COLOR_SPACES_WITH_APPROX_FIELD
protected static final Long DEFAULT_COLR_METHOD
protected static final Long DEFAULT_COLR_ENUM_CS
protected static final Long DEFAULT_BIT_DEPTH
protected static final Boolean DEFAULT_BPCC_BOX_PRESENT
protected static final PDColorSpace DEFAULT_COLOR_SPACE
public static PBoxJPEG2000 fromStream(InputStream stream, PDDocument document, PDFAFlavour flavour)
stream - image stream to parsepublic PDColorSpace getImageColorSpace()
public Long getnrColorChannels()
JPEG2000getnrColorChannels in interface JPEG2000public Long getnrColorSpaceSpecs()
JPEG2000getnrColorSpaceSpecs in interface JPEG2000public Long getnrColorSpacesWithApproxField()
JPEG2000getnrColorSpacesWithApproxField in interface JPEG2000public Long getcolrMethod()
JPEG2000getcolrMethod in interface JPEG2000public Long getcolrEnumCS()
JPEG2000getcolrEnumCS in interface JPEG2000public Long getbitDepth()
JPEG2000getbitDepth in interface JPEG2000public Boolean getbpccBoxPresent()
JPEG2000getbpccBoxPresent in interface JPEG2000Copyright © 2015–2020 The veraPDF Consortium. All rights reserved.