C# 클래스 RemoteViewing.Vnc.VncPixelFormat

Describes the low-level arrangement of a framebuffer pixel.
파일 보기 프로젝트 열기: qmfrederik/remoteviewing 1 사용 예제들

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