Packages

 

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

Class EmfPlusSetTsClip

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


    public final class EmfPlusSetTsClip
    extends EmfPlusTerminalServerRecordType

    The EmfPlusSetTSClip record specifies clipping areas in the graphics device context for a terminal server.

    The compression scheme for data in this record uses the following algorithm. Each point of each rectangle is encoded in either a single byte or 2 bytes. If the point is encoded in a single byte, the high bit (0x80) of the byte MUST be set, and the value is a signed number represented by the lower 7 bits. If the high bit is not set, then the value is encoded in 2 bytes, with the high-order byte encoded in the 7 lower bits of the first byte, and the low-order byte value encoded in the second byte. Each point is encoded as the difference between the point in the current rect and the point in the previous rect. The bottom point of the rect is encoded as the difference between the bottom coordinate and the top coordinate on the current rect.

    • Constructor Detail

      • EmfPlusSetTsClip

        public EmfPlusSetTsClip(EmfPlusRecord source)

        Initializes a new instance of the EmfPlusSetTsClip class.

        Parameters:
        source - The source.
    • Method Detail

      • getCompressed

        public boolean getCompressed()

        Gets a value indicating whether this EmfPlusSetTsClip is compressed. This bit specifies the format of the rectangle data in the rects field. If set, each rectangle is defined in 4 bytes. If clear, each rectangle is defined in 8 bytes.

        Value: true if compressed; otherwise, false.
      • getNumRects

        public short getNumRects()

        Gets the number rects. This field specifies the number of rectangles that are defined in the rect field.

        Value: The number rects.
      • getRects

        public Rectangle[] getRects()

        Gets or sets an array of NumRects rectangles that define clipping areas. The format of this data is determined by the C bit in the Flags field.

        Value: The rects.
      • setRects

        public void setRects(Rectangle[] value)

        Gets or sets an array of NumRects rectangles that define clipping areas. The format of this data is determined by the C bit in the Flags field.

        Value: The rects.