C# Класс RemoteViewing.Vnc.VncPixelFormat

Describes the low-level arrangement of a framebuffer pixel.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
BitsFromMax int
Decode VncPixelFormat
Encode void

Открытые методы

Метод Описание
Copy ( IntPtr source, int sourceStride, VncPixelFormat sourceFormat, VncRectangle sourceRectangle, IntPtr target, int targetStride, VncPixelFormat targetFormat, int targetX, int targetY ) : void

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, VncPixelFormat sourceFormat, VncRectangle sourceRectangle, byte target, int targetWidth, int targetStride, VncPixelFormat targetFormat, int targetX, int targetY ) : void

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.

Приватные методы

Метод Описание
BitsFromMax ( int max ) : int
Decode ( byte buffer, int offset ) : VncPixelFormat

Decodes a VncPixelFormat from a byte array.

Encode ( byte buffer, int offset ) : void

Serializes this VncPixelFormat to a byte array.

Описание методов

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.

public static Copy ( IntPtr source, int sourceStride, VncPixelFormat sourceFormat, VncRectangle sourceRectangle, IntPtr target, int targetStride, VncPixelFormat targetFormat, int targetX, int targetY ) : void
source System.IntPtr 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 VncPixelFormat The source pixel format.
sourceRectangle VncRectangle The rectangle in the source to decode.
target System.IntPtr 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 VncPixelFormat 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.
Результат void

Copy() публичный статический Метод

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.
public static Copy ( byte source, int sourceWidth, int sourceStride, VncPixelFormat sourceFormat, VncRectangle sourceRectangle, byte target, int targetWidth, int targetStride, VncPixelFormat targetFormat, int targetX, int targetY ) : void
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 VncPixelFormat 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 VncPixelFormat 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.
Результат void

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

ToString() публичный Метод

public ToString ( ) : string
Результат string

VncPixelFormat() публичный Метод

Initializes a new instance of the VncPixelFormat class, with 8 bits each of red, green, and blue channels.
public VncPixelFormat ( ) : System
Результат System

VncPixelFormat() публичный Метод

Initializes a new instance of the VncPixelFormat class.
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 true if the pixel is little-endian, or false if it is big-endian.
isPalettized bool true if the framebuffer stores palette indices, or false if it stores colors.
Результат System