Packages

 

com.aspose.imaging.fileformats.emf.emf.records

Classes

com.aspose.imaging.fileformats.emf.emf.records

Class EmfAlphaBlend

  • All Implemented Interfaces:
    com.aspose.internal.fileformats.emf.IRecord, Cloneable


    public final class EmfAlphaBlend
    extends EmfBitmapRecordType

    The EMR_ALPHABLEND record specifies a block transfer of pixels from a source bitmap to a destination rectangle, including alpha transparency data, according to a specified blending operation.

    • Constructor Summary

      Constructors 
      Constructor and Description
      EmfAlphaBlend(EmfRecord source)
      Initializes a new instance of the EmfAlphaBlend class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getBkSrcArgb32Color()
      Gets or sets a WMF ColorRef object ([MS-WMF] section 2.2.2.8 that specifies the background color of the source bitmap.
      EmfBlendFunction getBlendFunction()
      Gets or sets a structure that specifies the blending operations for source and destination bitmaps
      Rectangle getBounds()
      Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that defines the destination bounding rectangle in device units.
      int getCxDest()
      Gets or sets a 32-bit signed integer that specifies the logical width of the destination rectangle.
      int getCxSrc()
      Gets or sets a 32-bit signed integer that specifies the logical width of the source rectangle.
      int getCyDest()
      Gets or sets a 32-bit signed integer that specifies the logical height of the destination rectangle.
      int getCySrc()
      Gets or sets a 32-bit signed integer that specifies the logical height of the source rectangle.
      WmfDeviceIndependentBitmap getSourceBitmap()
      Gets or sets a buffer containing the source bitmap, which is not required to be contiguous with the fixed portion of the EMR_ALPHABLEND record.
      int getUsageSrc()
      Gets or sets a 32-bit unsigned integer that specifies how to interpret values in the color table in the source bitmap header.
      int getXDest()
      Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the destination rectangle.
      Matrix getXformSr()
      Gets or sets an XForm object (section 2.2.28) that specifies a world-space to page-space transform to apply to the source bitmap.
      int getXSrc()
      Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the source rectangle.
      int getYDest()
      Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the destination rectangle.
      int getYSrc()
      Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the source rectangle.
      void setBkSrcArgb32Color(int value)
      Gets or sets a WMF ColorRef object ([MS-WMF] section 2.2.2.8 that specifies the background color of the source bitmap.
      void setBlendFunction(EmfBlendFunction value)
      Gets or sets a structure that specifies the blending operations for source and destination bitmaps
      void setBounds(Rectangle value)
      Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that defines the destination bounding rectangle in device units.
      void setCxDest(int value)
      Gets or sets a 32-bit signed integer that specifies the logical width of the destination rectangle.
      void setCxSrc(int value)
      Gets or sets a 32-bit signed integer that specifies the logical width of the source rectangle.
      void setCyDest(int value)
      Gets or sets a 32-bit signed integer that specifies the logical height of the destination rectangle.
      void setCySrc(int value)
      Gets or sets a 32-bit signed integer that specifies the logical height of the source rectangle.
      void setSourceBitmap(WmfDeviceIndependentBitmap value)
      Gets or sets a buffer containing the source bitmap, which is not required to be contiguous with the fixed portion of the EMR_ALPHABLEND record.
      void setUsageSrc(int value)
      Gets or sets a 32-bit unsigned integer that specifies how to interpret values in the color table in the source bitmap header.
      void setXDest(int value)
      Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the destination rectangle.
      void setXformSr(Matrix value)
      Gets or sets an XForm object (section 2.2.28) that specifies a world-space to page-space transform to apply to the source bitmap.
      void setXSrc(int value)
      Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the source rectangle.
      void setYDest(int value)
      Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the destination rectangle.
      void setYSrc(int value)
      Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the source rectangle.
    • Constructor Detail

      • EmfAlphaBlend

        public EmfAlphaBlend(EmfRecord source)

        Initializes a new instance of the EmfAlphaBlend class.

        Parameters:
        source - The source.
    • Method Detail

      • getBounds

        public Rectangle getBounds()

        Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that defines the destination bounding rectangle in device units.

      • setBounds

        public void setBounds(Rectangle value)

        Gets or sets a WMF RectL object ([MS-WMF] section 2.2.2.19) that defines the destination bounding rectangle in device units.

      • getXDest

        public int getXDest()

        Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the destination rectangle.

      • setXDest

        public void setXDest(int value)

        Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the destination rectangle.

      • getYDest

        public int getYDest()

        Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the destination rectangle.

      • setYDest

        public void setYDest(int value)

        Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the destination rectangle.

      • getCxDest

        public int getCxDest()

        Gets or sets a 32-bit signed integer that specifies the logical width of the destination rectangle. This value MUST be greater than zero.

      • setCxDest

        public void setCxDest(int value)

        Gets or sets a 32-bit signed integer that specifies the logical width of the destination rectangle. This value MUST be greater than zero.

      • getCyDest

        public int getCyDest()

        Gets or sets a 32-bit signed integer that specifies the logical height of the destination rectangle. This value MUST be greater than zero.

      • setCyDest

        public void setCyDest(int value)

        Gets or sets a 32-bit signed integer that specifies the logical height of the destination rectangle. This value MUST be greater than zero.

      • getBlendFunction

        public EmfBlendFunction getBlendFunction()

        Gets or sets a structure that specifies the blending operations for source and destination bitmaps

      • setBlendFunction

        public void setBlendFunction(EmfBlendFunction value)

        Gets or sets a structure that specifies the blending operations for source and destination bitmaps

      • getXSrc

        public int getXSrc()

        Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the source rectangle.

      • setXSrc

        public void setXSrc(int value)

        Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the source rectangle.

      • getYSrc

        public int getYSrc()

        Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the source rectangle.

      • setYSrc

        public void setYSrc(int value)

        Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the source rectangle.

      • getXformSr

        public Matrix getXformSr()

        Gets or sets an XForm object (section 2.2.28) that specifies a world-space to page-space transform to apply to the source bitmap.

      • setXformSr

        public void setXformSr(Matrix value)

        Gets or sets an XForm object (section 2.2.28) that specifies a world-space to page-space transform to apply to the source bitmap.

      • getBkSrcArgb32Color

        public int getBkSrcArgb32Color()

        Gets or sets a WMF ColorRef object ([MS-WMF] section 2.2.2.8 that specifies the background color of the source bitmap.

        Value: The 32-bit ARGB color
      • setBkSrcArgb32Color

        public void setBkSrcArgb32Color(int value)

        Gets or sets a WMF ColorRef object ([MS-WMF] section 2.2.2.8 that specifies the background color of the source bitmap.

        Value: The 32-bit ARGB color
      • getUsageSrc

        public int getUsageSrc()

        Gets or sets a 32-bit unsigned integer that specifies how to interpret values in the color table in the source bitmap header. This value MUST be in the DIBColors enumeration (section 2.1.9).

      • setUsageSrc

        public void setUsageSrc(int value)

        Gets or sets a 32-bit unsigned integer that specifies how to interpret values in the color table in the source bitmap header. This value MUST be in the DIBColors enumeration (section 2.1.9).

      • getCxSrc

        public int getCxSrc()

        Gets or sets a 32-bit signed integer that specifies the logical width of the source rectangle. This value MUST be greater than zero.

      • setCxSrc

        public void setCxSrc(int value)

        Gets or sets a 32-bit signed integer that specifies the logical width of the source rectangle. This value MUST be greater than zero.

      • getCySrc

        public int getCySrc()

        Gets or sets a 32-bit signed integer that specifies the logical height of the source rectangle. This value MUST be greater than zero.

      • setCySrc

        public void setCySrc(int value)

        Gets or sets a 32-bit signed integer that specifies the logical height of the source rectangle. This value MUST be greater than zero.

      • getSourceBitmap

        public WmfDeviceIndependentBitmap getSourceBitmap()

        Gets or sets a buffer containing the source bitmap, which is not required to be contiguous with the fixed portion of the EMR_ALPHABLEND record. Accordingly, fields in this buffer that are labeled "UndefinedSpace" are optional and MUST be ignored.

      • setSourceBitmap

        public void setSourceBitmap(WmfDeviceIndependentBitmap value)

        Gets or sets a buffer containing the source bitmap, which is not required to be contiguous with the fixed portion of the EMR_ALPHABLEND record. Accordingly, fields in this buffer that are labeled "UndefinedSpace" are optional and MUST be ignored.