2.2.7.1.7 Brush Capability Set (TS_BRUSH_CAPABILITYSET)
The TS_BRUSH_CAPABILITYSET advertises client brush support. This capability is only sent from client to server.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
capabilitySetType |
lengthCapability |
||||||||||||||||||||||||||||||
brushSupportLevel |
capabilitySetType (2 bytes): A 16-bit, unsigned integer. The type of the capability set. This field MUST be set to CAPSTYPE_BRUSH (15).
lengthCapability (2 bytes): A 16-bit, unsigned integer. The length in bytes of the capability data, including the size of the capabilitySetType and lengthCapability fields.
brushSupportLevel (4 bytes): A 32-bit, unsigned integer. The maximum brush level supported by the client.
-
Value
Meaning
BRUSH_DEFAULT
0x00000000
Support for solid-color and monochrome pattern brushes with no caching. This is an RDP 4.0 implementation.
BRUSH_COLOR_8x8
0x00000001
Ability to handle color brushes (4-bit or 8-bit in RDP 5.0; 4-bit, 8-bit, 16-bit, or 24-bit in all other RDP versions, except for RDP 4.0) and caching. Brushes are limited to 8-by-8 pixels.
BRUSH_COLOR_FULL
0x00000002
Ability to handle color brushes (4-bit or 8-bit in RDP 5.0; 4-bit, 8-bit, 16-bit, or 24-bit in all other RDP versions, except for RDP 4.0) and caching. Brushes can have arbitrary dimensions.