Packages

 

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

Classes

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

Class EmfMaskBlt

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


    public final class EmfMaskBlt
    extends EmfBitmapRecordType

    The EMR_MASKBLT record specifies a block transfer of pixels from a source bitmap to a destination rectangle, optionally in combination with a brush pattern and with the application of a color mask bitmap, according to specified foreground and background raster operations.

    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getArgb32BkColorSrc()
      Gets or sets a WMF ColorRef object ([MS-WMF] section 2.2.2.8 that specifies the background color of the source bitmap.
      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 getCyDest()
      Gets or sets a 32-bit signed integer that specifies the logical height of the destination rectangle.
      WmfDeviceIndependentBitmap getMaskBitmap()
      Gets or sets a buffer containing the mask bitmaps, which are not required to be contiguous with the fixed portion of the EMR_MASKBLT record or with each other.
      EmfRop4 getRop4()
      Gets or sets a quaternary raster operation, which specifies ternary raster operations for the foreground and background colors of a bitmap.
      WmfDeviceIndependentBitmap getSourceBitmap()
      Gets or sets a buffer containing the source bitmaps, which are not required to be contiguous with the fixed portion of the EMR_MASKBLT record or with each other.
      int getUsageMask()
      Gets or sets a 32-bit unsigned integer that specifies how to interpret values in the color table in the mask bitmap header.
      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 getXformSrc()
      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 getXMask()
      Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the mask 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 getYMask()
      Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the mask bitmap.
      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 setArgb32BkColorSrc(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 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 setCyDest(int value)
      Gets or sets a 32-bit signed integer that specifies the logical height of the destination rectangle.
      void setMaskBitmap(WmfDeviceIndependentBitmap value)
      Gets or sets a buffer containing the mask bitmaps, which are not required to be contiguous with the fixed portion of the EMR_MASKBLT record or with each other.
      void setRop4(EmfRop4 value)
      Gets or sets a quaternary raster operation, which specifies ternary raster operations for the foreground and background colors of a bitmap.
      void setSourceBitmap(WmfDeviceIndependentBitmap value)
      Gets or sets a buffer containing the source bitmaps, which are not required to be contiguous with the fixed portion of the EMR_MASKBLT record or with each other.
      void setUsageMask(int value)
      Gets or sets a 32-bit unsigned integer that specifies how to interpret values in the color table in the mask bitmap header.
      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 setXformSrc(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 setXMask(int value)
      Gets or sets a 32-bit signed integer that specifies the logical x-coordinate of the upper-left corner of the mask 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 setYMask(int value)
      Gets or sets a 32-bit signed integer that specifies the logical y-coordinate of the upper-left corner of the mask bitmap.
      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

      • EmfMaskBlt

        public EmfMaskBlt(EmfRecord source)

        Initializes a new instance of the EmfMaskBlt 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.

      • setCxDest

        public void setCxDest(int value)

        Gets or sets a 32-bit signed integer that specifies the logical width of the destination rectangle.

      • getCyDest

        public int getCyDest()

        Gets or sets a 32-bit signed integer that specifies the logical height of the destination rectangle.

      • setCyDest

        public void setCyDest(int value)

        Gets or sets a 32-bit signed integer that specifies the logical height of the destination rectangle.

      • getRop4

        public EmfRop4 getRop4()

        Gets or sets a quaternary raster operation, which specifies ternary raster operations for the foreground and background colors of a bitmap. These values define how the color data of the source rectangle is to be combined with the color data of the destination rectangle.

      • setRop4

        public void setRop4(EmfRop4 value)

        Gets or sets a quaternary raster operation, which specifies ternary raster operations for the foreground and background colors of a bitmap. These values define how the color data of the source rectangle is to be combined with the color data of the destination rectangle.

      • 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.

      • getXformSrc

        public Matrix getXformSrc()

        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.

      • setXformSrc

        public void setXformSrc(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.

      • getArgb32BkColorSrc

        public int getArgb32BkColorSrc()

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

      • setArgb32BkColorSrc

        public void setArgb32BkColorSrc(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.

      • 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).

      • getXMask

        public int getXMask()

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

      • setXMask

        public void setXMask(int value)

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

      • getYMask

        public int getYMask()

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

      • setYMask

        public void setYMask(int value)

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

      • getUsageMask

        public int getUsageMask()

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

      • setUsageMask

        public void setUsageMask(int value)

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

      • getSourceBitmap

        public WmfDeviceIndependentBitmap getSourceBitmap()

        Gets or sets a buffer containing the source bitmaps, which are not required to be contiguous with the fixed portion of the EMR_MASKBLT record or with each other. 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 bitmaps, which are not required to be contiguous with the fixed portion of the EMR_MASKBLT record or with each other. Accordingly, fields in this buffer that are labeled "UndefinedSpace" are optional and MUST be ignored.

      • getMaskBitmap

        public WmfDeviceIndependentBitmap getMaskBitmap()

        Gets or sets a buffer containing the mask bitmaps, which are not required to be contiguous with the fixed portion of the EMR_MASKBLT record or with each other. Accordingly, fields in this buffer that are labeled "UndefinedSpace" are optional and MUST be ignored.

      • setMaskBitmap

        public void setMaskBitmap(WmfDeviceIndependentBitmap value)

        Gets or sets a buffer containing the mask bitmaps, which are not required to be contiguous with the fixed portion of the EMR_MASKBLT record or with each other. Accordingly, fields in this buffer that are labeled "UndefinedSpace" are optional and MUST be ignored.