C# Class RemoteViewing.Vnc.VncPixelFormat

Describes the low-level arrangement of a framebuffer pixel.
Afficher le fichier Open project: qmfrederik/remoteviewing Class Usage Examples

Private Properties

Свойство Type Description
BitsFromMax int
Decode VncPixelFormat
Encode void

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

Copy() public static méthode

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.
Résultat void

Copy() public static méthode

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.
Résultat void

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

ToString() public méthode

public ToString ( ) : string
Résultat string

VncPixelFormat() public méthode

Initializes a new instance of the VncPixelFormat class, with 8 bits each of red, green, and blue channels.
public VncPixelFormat ( ) : System
Résultat System

VncPixelFormat() public méthode

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.
Résultat System