Package org.apache.poi.hemf.record.emf
Class HemfFill.EmfAlphaBlend
java.lang.Object
org.apache.poi.hemf.record.emf.HemfFill.EmfAlphaBlend
- All Implemented Interfaces:
GenericRecord,HemfRecord
- Enclosing class:
- HemfFill
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.poi.hemf.record.emf.HemfRecord
HemfRecord.RenderBounds -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byteA byte that specifies how source and destination pixels are interpreted with respect to alpha transparency.protected final HwmfBitmapDibprotected final HwmfColorRefthe background color of the source bitmap.protected byteThis value MUST be 0x00 and MUST be ignored.protected byteThe blend operation code.protected final Rectangle2Dthe destination bounding rectangle in device unitsprotected final Rectangle2Dthe destination rectangleprotected intAn 8-bit unsigned integer that specifies alpha transparency, which determines the blend of the source and destination bitmaps.protected final Rectangle2Dthe source rectangleprotected HwmfFill.ColorUsageA 32-bit unsigned integer that specifies how to interpret values in the color table in the source bitmap header.protected final AffineTransforma world-space to page-space transform to apply to the source bitmap. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonginit(LittleEndianInputStream leis, long recordSize, long recordId) Init record from streamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildrenMethods inherited from interface org.apache.poi.hemf.record.emf.HemfRecord
calcBounds, draw, getGenericRecordType, setHeader
-
Field Details
-
bounds
the destination bounding rectangle in device units -
destRect
the destination rectangle -
srcRect
the source rectangle -
blendOperation
protected byte blendOperationThe blend operation code. The only source and destination blend operation that has been defined is 0x00, which specifies that the source bitmap MUST be combined with the destination bitmap based on the alpha transparency values of the source pixels. -
blendFlags
protected byte blendFlagsThis value MUST be 0x00 and MUST be ignored. -
srcConstantAlpha
protected int srcConstantAlphaAn 8-bit unsigned integer that specifies alpha transparency, which determines the blend of the source and destination bitmaps. This value MUST be used on the entire source bitmap. The minimum alpha transparency value, zero, corresponds to completely transparent; the maximum value, 0xFF, corresponds to completely opaque. In effect, a value of 0xFF specifies that the per-pixel alpha values determine the blend of the source and destination bitmaps. -
alphaFormat
protected byte alphaFormatA byte that specifies how source and destination pixels are interpreted with respect to alpha transparency. 0x00: The pixels in the source bitmap do not specify alpha transparency. In this case, the SrcConstantAlpha value determines the blend of the source and destination bitmaps. Note that in the following equations SrcConstantAlpha is divided by 255, which produces a value in the range 0 to 1. 0x01: "AC_SRC_ALPHA" Indicates that the source bitmap is 32 bits-per-pixel and specifies an alpha transparency value for each pixel. -
xFormSrc
a world-space to page-space transform to apply to the source bitmap. -
bkColorSrc
the background color of the source bitmap. -
usageSrc
A 32-bit unsigned integer that specifies how to interpret values in the color table in the source bitmap header. -
bitmap
-
-
Constructor Details
-
EmfAlphaBlend
public EmfAlphaBlend()
-
-
Method Details
-
getEmfRecordType
- Specified by:
getEmfRecordTypein interfaceHemfRecord
-
init
Description copied from interface:HemfRecordInit record from stream- Specified by:
initin interfaceHemfRecord- Parameters:
leis- the little endian input streamrecordSize- the size limit for this recordrecordId- the id of theHemfRecordType- Returns:
- count of processed bytes
- Throws:
IOException- when the inputstream is malformed
-
getGenericProperties
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-