public final class JPEG extends Bitmap
Modifier and Type | Class and Description |
---|---|
static class |
JPEG.ColorSpace |
PictureData.PictureType
CHECKSUM_SIZE
Constructor and Description |
---|
JPEG()
Deprecated.
Use
HSLFSlideShow.addPicture(byte[], org.apache.poi.sl.usermodel.PictureData.PictureType) or one of its overloads to create new
JPEG . This API led to detached JPEG instances (See Bugzilla
46122) and prevented adding additional functionality. |
JPEG(EscherContainerRecord recordContainer,
EscherBSERecord bse)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
JPEG.ColorSpace |
getColorSpace() |
int |
getSignature()
JPEG signature is one of
0x46A0, 0x46B0, 0x6E20, 0x6E30 |
PictureData.PictureType |
getType() |
void |
setColorSpace(JPEG.ColorSpace colorSpace) |
void |
setSignature(int signature)
Sets the PICT signature - either
0x5420 or 0x5430 |
formatImageForSlideshow, getData, getImageDimension
create, getChecksum, getChecksum, getContentType, getGenericProperties, getHeader, getImageDimensionInPixels, getIndex, getOffset, getRawData, getUID, getUIDInstanceCount, setData, setIndex, setOffset, setRawData, setUIDInstanceCount, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGenericChildren, getGenericRecordType
@Deprecated @Removal(version="5.3") public JPEG()
HSLFSlideShow.addPicture(byte[], org.apache.poi.sl.usermodel.PictureData.PictureType)
or one of its overloads to create new
JPEG
. This API led to detached JPEG
instances (See Bugzilla
46122) and prevented adding additional functionality.@Internal public JPEG(EscherContainerRecord recordContainer, EscherBSERecord bse)
recordContainer
- Record tracking all pictures. Should be attached to the slideshow that this picture is
linked to.bse
- Record referencing this picture. Should be attached to the slideshow that this picture is linked to.public PictureData.PictureType getType()
public JPEG.ColorSpace getColorSpace()
public void setColorSpace(JPEG.ColorSpace colorSpace)
public int getSignature()
0x46A0, 0x46B0, 0x6E20, 0x6E30
getSignature
in class HSLFPictureData
0x46A0, 0x46B0, 0x6E20, 0x6E30
)public void setSignature(int signature)
0x5420
or 0x5430
setSignature
in class HSLFPictureData
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.