Class EmfPlusSetTsClip

Class EmfPlusSetTsClip

Namespace: Aspose.Imaging.FileFormats.Emf.EmfPlus.Records
Assembly: Aspose.Imaging.dll (25.4.0)

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

public sealed class EmfPlusSetTsClip : EmfPlusTerminalServerRecordType

Inheritance

objectMetaObjectEmfPlusRecordEmfPlusTerminalServerRecordTypeEmfPlusSetTsClip

Inherited Members

EmfPlusRecord.Type, EmfPlusRecord.Flags, EmfPlusRecord.Size, EmfPlusRecord.DataSize, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Remarks

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.

Constructors

EmfPlusSetTsClip(EmfPlusRecord)

Initializes a new instance of the Aspose.Imaging.FileFormats.Emf.EmfPlus.Records.EmfPlusSetTsClip class.

public EmfPlusSetTsClip(EmfPlusRecord source)

Parameters

source EmfPlusRecord

The source.

Properties

Compressed

Gets a value indicating whether this Aspose.Imaging.FileFormats.Emf.EmfPlus.Records.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.

public bool Compressed { get; }

Property Value

bool

NumRects

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

public short NumRects { get; }

Property Value

short

Rects

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.

public Rectangle[] Rects { get; set; }

Property Value

Rectangle[]