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 and Description |
---|
EmfPlusSetTsClip(EmfPlusRecord source)
Initializes a new instance of the
EmfPlusSetTsClip class. |
Modifier and Type | Method and Description |
---|---|
boolean |
getCompressed()
Gets a value indicating whether this
EmfPlusSetTsClip is compressed. |
short |
getNumRects()
Gets the number rects.
|
Rectangle[] |
getRects()
Gets or sets an array of NumRects rectangles that define clipping areas.
|
void |
setRects(Rectangle[] value)
Gets or sets an array of NumRects rectangles that define clipping areas.
|
getDataSize, getFlags, getSize, getType, setDataSize, setFlags, setSize
public EmfPlusSetTsClip(EmfPlusRecord source)
Initializes a new instance of the EmfPlusSetTsClip
class.
source
- The source.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.
true
if compressed; otherwise, false
.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.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.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.