Class HemfPlusImage.EmfPlusImage
java.lang.Object
org.apache.poi.hemf.record.emfplus.HemfPlusImage.EmfPlusImage
- All Implemented Interfaces:
GenericRecord,HemfPlusObject.EmfPlusObjectData
- Enclosing class:
- HemfPlusImage
public static class HemfPlusImage.EmfPlusImage
extends Object
implements HemfPlusObject.EmfPlusObjectData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyObject(HemfGraphics ctx, List<? extends HemfPlusObject.EmfPlusObjectData> continuedObjectData) intintintgetBounds(List<? extends HemfPlusObject.EmfPlusObjectData> continuedObjectData) byte[]byte[]getRawData(List<? extends HemfPlusObject.EmfPlusObjectData> continuedObjectData) longinit(LittleEndianInputStream leis, long dataSize, HemfPlusObject.EmfPlusObjectType objectType, int flags) readGDIImage(byte[] data) Converts the gdi pixel data to a buffered imagetoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildrenMethods inherited from interface org.apache.poi.hemf.record.emfplus.HemfPlusObject.EmfPlusObjectData
isContinuedRecord
-
Constructor Details
-
EmfPlusImage
public EmfPlusImage()
-
-
Method Details
-
getImageDataType
-
getImageData
public byte[] getImageData() -
getPixelFormat
-
getBitmapType
-
getBitmapWidth
public int getBitmapWidth() -
getBitmapHeight
public int getBitmapHeight() -
getBitmapStride
public int getBitmapStride() -
getMetafileType
-
init
public long init(LittleEndianInputStream leis, long dataSize, HemfPlusObject.EmfPlusObjectType objectType, int flags) throws IOException - Specified by:
initin interfaceHemfPlusObject.EmfPlusObjectData- Throws:
IOException
-
getGraphicsVersion
- Specified by:
getGraphicsVersionin interfaceHemfPlusObject.EmfPlusObjectData
-
getBounds
-
getRawData
- Parameters:
continuedObjectData- list of object data- Returns:
- byte array
- Throws:
IllegalStateException- if the data cannot be read
-
applyObject
public void applyObject(HemfGraphics ctx, List<? extends HemfPlusObject.EmfPlusObjectData> continuedObjectData) - Specified by:
applyObjectin interfaceHemfPlusObject.EmfPlusObjectData
-
readGDIImage
Converts the gdi pixel data to a buffered image- Parameters:
data- the image data of all EmfPlusImage parts- Returns:
- the BufferedImage
-
toString
-
getGenericRecordType
- Specified by:
getGenericRecordTypein interfaceGenericRecord
-
getGenericProperties
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-