Свойство | Type | Description | |
---|---|---|---|
BitsFromMax | int | ||
Decode | |||
Encode | void |
Méthode | Description | |
---|---|---|
Copy ( |
Copies pixels. A format conversion is performed if necessary. Be sure to lock VncFramebuffer.SyncRoot first to avoid tearing, if the connection is active.
|
|
Copy ( byte source, int sourceWidth, int sourceStride, |
Copies pixels between two byte arrays. A format conversion is performed if necessary. Be sure to lock VncFramebuffer.SyncRoot first to avoid tearing, if the connection is active.
|
|
Equals ( object obj ) : bool | ||
GetHashCode ( ) : int | ||
ToString ( ) : string | ||
VncPixelFormat ( ) : System |
Initializes a new instance of the VncPixelFormat class, with 8 bits each of red, green, and blue channels.
|
|
VncPixelFormat ( int bitsPerPixel, int bitDepth, int redBits, int redShift, int greenBits, int greenShift, int blueBits, int blueShift, bool isLittleEndian = true, bool isPalettized = false ) : System |
Initializes a new instance of the VncPixelFormat class.
|
Méthode | Description | |
---|---|---|
BitsFromMax ( int max ) : int | ||
Decode ( byte buffer, int offset ) : |
Decodes a VncPixelFormat from a byte array.
|
|
Encode ( byte buffer, int offset ) : void |
Serializes this VncPixelFormat to a byte array.
|
public static Copy ( |
||
source | A pointer to the upper-left corner of the source. | |
sourceStride | int | The offset in the source between one Y coordinate and the next. |
sourceFormat | The source pixel format. | |
sourceRectangle | VncRectangle | The rectangle in the source to decode. |
target | A pointer to the upper-left corner of the target. | |
targetStride | int | The offset in the target between one Y coordinate and the next. |
targetFormat | The target pixel format. | |
targetX | int | The X coordinate in the target that the leftmost pixel should be placed into. |
targetY | int | The Y coordinate in the target that the topmost pixel should be placed into. |
Résultat | void |
public static Copy ( byte source, int sourceWidth, int sourceStride, |
||
source | byte | A pointer to the upper-left corner of the source. |
sourceWidth | int | The width of the source image. |
sourceStride | int | The offset in the source between one Y coordinate and the next. |
sourceFormat | The source pixel format. | |
sourceRectangle | VncRectangle | The rectangle in the source to decode. |
target | byte | A pointer to the upper-left corner of the target. |
targetWidth | int | The width of the target image. |
targetStride | int | The offset in the target between one Y coordinate and the next. |
targetFormat | The target pixel format. | |
targetX | int | The X coordinate in the target that the leftmost pixel should be placed into. |
targetY | int | The Y coordinate in the target that the topmost pixel should be placed into. |
Résultat | void |
public VncPixelFormat ( int bitsPerPixel, int bitDepth, int redBits, int redShift, int greenBits, int greenShift, int blueBits, int blueShift, bool isLittleEndian = true, bool isPalettized = false ) : System | ||
bitsPerPixel | int | The number of bits used to store a pixel. Currently, this must be 8, 16, or 32. |
bitDepth | int | The bit depth of the pixel. Currently, this must be 24. |
redBits | int | The number of bits used to represent red. |
redShift | int | The number of bits left the red value is shifted. |
greenBits | int | The number of bits used to represent green. |
greenShift | int | The number of bits left the green value is shifted. |
blueBits | int | The number of bits used to represent blue. |
blueShift | int | The number of bits left the blue value is shifted. |
isLittleEndian | bool | |
isPalettized | bool | |
Résultat | System |