Package org.apache.poi.hslf.blip
Class PNG
- java.lang.Object
-
- org.apache.poi.hslf.usermodel.HSLFPictureData
-
- org.apache.poi.hslf.blip.Bitmap
-
- org.apache.poi.hslf.blip.PNG
-
- All Implemented Interfaces:
GenericRecord,PictureData
public final class PNG extends Bitmap
Represents a PNG picture data in a PPT file
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.poi.sl.usermodel.PictureData
PictureData.PictureType
-
-
Field Summary
-
Fields inherited from class org.apache.poi.hslf.usermodel.HSLFPictureData
CHECKSUM_SIZE
-
-
Constructor Summary
Constructors Constructor Description PNG()Deprecated.UseHSLFSlideShow.addPicture(byte[], org.apache.poi.sl.usermodel.PictureData.PictureType)or one of its overloads to create newPNG.PNG(EscherContainerRecord recordContainer, EscherBSERecord bse)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getData()intgetSignature()PNG signature is0x6E00or0x6E10PictureData.PictureTypegetType()voidsetSignature(int signature)Sets the PNG signature - either0x6E00or0x6E10-
Methods inherited from class org.apache.poi.hslf.blip.Bitmap
formatImageForSlideshow, getImageDimension
-
Methods inherited from class org.apache.poi.hslf.usermodel.HSLFPictureData
create, getChecksum, getChecksum, getContentType, getGenericProperties, getHeader, getImageDimensionInPixels, getIndex, getOffset, getRawData, getUID, getUIDInstanceCount, setData, setIndex, setOffset, setRawData, setUIDInstanceCount, write
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
-
-
-
Constructor Detail
-
PNG
@Deprecated @Removal(version="5.3") public PNG()
Deprecated.UseHSLFSlideShow.addPicture(byte[], org.apache.poi.sl.usermodel.PictureData.PictureType)or one of its overloads to create newPNG. This API led to detachedPNGinstances (See Bugzilla 46122) and prevented adding additional functionality.
-
PNG
@Internal public PNG(EscherContainerRecord recordContainer, EscherBSERecord bse)
Creates a new instance.- Parameters:
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.
-
-
Method Detail
-
getData
public byte[] getData()
- Specified by:
getDatain interfacePictureData- Overrides:
getDatain classBitmap
-
getType
public PictureData.PictureType getType()
-
getSignature
public int getSignature()
PNG signature is0x6E00or0x6E10- Specified by:
getSignaturein classHSLFPictureData- Returns:
- PNG signature (
0x6E00or0x6E10)
-
setSignature
public void setSignature(int signature)
Sets the PNG signature - either0x6E00or0x6E10- Specified by:
setSignaturein classHSLFPictureData
-
-