C# Class Microsoft.Protocols.TestSuites.Rdpegfx.RdpegfxTestUtility

Utility class used for RDPEGFX test. The fields defined here are only used internally.
Afficher le fichier Open project: Microsoft/WindowsProtocolTestSuites Class Usage Examples

Méthodes publiques

Свойство Type Description
ClearCodecImage System.Drawing.Bitmap
MaxBmpHeight ushort
MaxBmpWidth ushort
RfxProgCodecImage System.Drawing.Bitmap
cacheKey ulong
cacheRect Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_RECT16
ccBandHeight ushort
ccBandHeight2 ushort
ccBandWidth ushort
ccBandWidth2 ushort
ccGlyphIndex ushort
ccGlyphWidth ushort
ccLargeBandHeight ushort
ccLargeBandWidth ushort
ccMaxBandHeight ushort
ccMaxGlyphIndexNum ushort
ccMaxGlyphSize ushort
ccSmallGlyphHeight ushort
ccSmallGlyphWidth ushort
ccSubcodecHeight ushort
ccSubcodecMaxWidth ushort
ccSubcodecWidth ushort
copySrcRect Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_RECT16
copySrcRect2 Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_RECT16
delaySeconds byte
desktopHeight uint
desktopWidth uint
fillColorARGB Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_COLOR32
fillColorBlue Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_COLOR32
fillColorGreen Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_COLOR32
fillColorRed Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_COLOR32
imgPos Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_POINT16
imgPos2 Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_POINT16
imgPos3 Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_POINT16
imgPos4 Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_POINT16
largeCacheRect Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_RECT16
largeSurfHeight ushort
largeSurfWidth ushort
maxCacheSize int
maxCacheSizeForSmallCache int
maxCacheSlot ushort
maxCacheSlotForSmallCache ushort
maxMonitorCount uint
maxRfxProgCodecContextId uint
segmentPartSize uint
smallHeight ushort
smallWidth ushort
surfHeight ushort
surfHeight2 ushort
surfHeight3 ushort
surfPos Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_POINT16
surfPos2 Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_POINT16
surfPos3 Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_POINT16
surfPos4 Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_POINT16
surfWidth ushort
surfWidth2 ushort
surfWidth3 ushort

Méthodes publiques

Méthode Description
ConvertToRect ( RDPGFX_POINT16 pos, ushort width, ushort height ) : RDPGFX_RECT16

Convert a position and width/height into Rectangle structure

DrawGradientImage ( int w, int h, Color startColor ) : Bitmap

Draw an image with gradient color. The image is only used for clearcode subcodec test, and the width of image can't exceed 128.

DrawImage ( int w, int h, Color c ) : Bitmap

Draw an image with a color

DrawImageWithUniqueColor ( int w, int h, Color startColor ) : Bitmap

Draw a bitmap with each pixel has unique color. The image is only used for clearcode subcodec test, and the pixel number in image can't exceed 128.

DrawSurfImage ( Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.Surface surf, Color bgcolor, Bitmap pic, RDPGFX_POINT16 picPos ) : Bitmap

Draw an image for surface, which has a bitmap in surface.

ToRdpgfx_Color32 ( Color c ) : RDPGFX_COLOR32

Transform a C# color into RDPGRX_COLOR32 structure

captureFromImage ( Image srcImage, RDPGFX_POINT16 capPos, int width, int height, Image &bgImage ) : Bitmap

Capture a bitmap from an image

captureFromScreen ( int left, int top, int width, int height ) : Bitmap

Capture a bitmap from screen

drawDiagonal ( Image srcImage ) : Bitmap

Draw an image with a diagonal

Method Details

ConvertToRect() public static méthode

Convert a position and width/height into Rectangle structure
public static ConvertToRect ( RDPGFX_POINT16 pos, ushort width, ushort height ) : RDPGFX_RECT16
pos Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_POINT16 Left-top position of a rectangle
width ushort Width of a rectangle
height ushort Height of a rectangle
Résultat Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_RECT16

DrawGradientImage() public static méthode

Draw an image with gradient color. The image is only used for clearcode subcodec test, and the width of image can't exceed 128.
public static DrawGradientImage ( int w, int h, Color startColor ) : Bitmap
w int Width of an image
h int Height of an image
startColor Color The start color to draw image
Résultat System.Drawing.Bitmap

DrawImage() public static méthode

Draw an image with a color
public static DrawImage ( int w, int h, Color c ) : Bitmap
w int Width of an image
h int Height of an image
c Color The color to fill image
Résultat System.Drawing.Bitmap

DrawImageWithUniqueColor() public static méthode

Draw a bitmap with each pixel has unique color. The image is only used for clearcode subcodec test, and the pixel number in image can't exceed 128.
public static DrawImageWithUniqueColor ( int w, int h, Color startColor ) : Bitmap
w int Width of image
h int Height of image
startColor Color The start color to draw image
Résultat System.Drawing.Bitmap

DrawSurfImage() public static méthode

Draw an image for surface, which has a bitmap in surface.
public static DrawSurfImage ( Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.Surface surf, Color bgcolor, Bitmap pic, RDPGFX_POINT16 picPos ) : Bitmap
surf Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.Surface Indicate the size of surface image
bgcolor Color Indicate the background color of surface image
pic System.Drawing.Bitmap The bitmap to be drawn in surface image
picPos Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_POINT16 The bitmap position in surface
Résultat System.Drawing.Bitmap

ToRdpgfx_Color32() public static méthode

Transform a C# color into RDPGRX_COLOR32 structure
public static ToRdpgfx_Color32 ( Color c ) : RDPGFX_COLOR32
c Color Color to be converted
Résultat Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_COLOR32

captureFromImage() public static méthode

Capture a bitmap from an image
public static captureFromImage ( Image srcImage, RDPGFX_POINT16 capPos, int width, int height, Image &bgImage ) : Bitmap
srcImage Image The source of captured bitmap
capPos Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_POINT16 Left-top position in source image for captured bitmap
width int Width of captured bitmap
height int Height of captured bitmap
bgImage Image The image after a part is captured
Résultat System.Drawing.Bitmap

captureFromScreen() public static méthode

Capture a bitmap from screen
public static captureFromScreen ( int left, int top, int width, int height ) : Bitmap
left int Left position in screen for captured bitmap
top int Top position in screen for captured bitmap
width int Width of captured bitmap
height int Height of captured bitmap
Résultat System.Drawing.Bitmap

drawDiagonal() public static méthode

Draw an image with a diagonal
public static drawDiagonal ( Image srcImage ) : Bitmap
srcImage Image The source image
Résultat System.Drawing.Bitmap

Property Details

ClearCodecImage public_oe property

public Bitmap,System.Drawing ClearCodecImage
Résultat System.Drawing.Bitmap

MaxBmpHeight public_oe static_oe property

public static ushort MaxBmpHeight
Résultat ushort

MaxBmpWidth public_oe static_oe property

public static ushort MaxBmpWidth
Résultat ushort

RfxProgCodecImage public_oe property

public Bitmap,System.Drawing RfxProgCodecImage
Résultat System.Drawing.Bitmap

cacheKey public_oe static_oe property

public static ulong cacheKey
Résultat ulong

cacheRect public_oe static_oe property

public static RDPGFX_RECT16,Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx cacheRect
Résultat Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_RECT16

ccBandHeight public_oe static_oe property

public static ushort ccBandHeight
Résultat ushort

ccBandHeight2 public_oe static_oe property

public static ushort ccBandHeight2
Résultat ushort

ccBandWidth public_oe static_oe property

public static ushort ccBandWidth
Résultat ushort

ccBandWidth2 public_oe static_oe property

public static ushort ccBandWidth2
Résultat ushort

ccGlyphIndex public_oe static_oe property

public static ushort ccGlyphIndex
Résultat ushort

ccGlyphWidth public_oe static_oe property

public static ushort ccGlyphWidth
Résultat ushort

ccLargeBandHeight public_oe static_oe property

public static ushort ccLargeBandHeight
Résultat ushort

ccLargeBandWidth public_oe static_oe property

public static ushort ccLargeBandWidth
Résultat ushort

ccMaxBandHeight public_oe static_oe property

public static ushort ccMaxBandHeight
Résultat ushort

ccMaxGlyphIndexNum public_oe static_oe property

public static ushort ccMaxGlyphIndexNum
Résultat ushort

ccMaxGlyphSize public_oe static_oe property

public static ushort ccMaxGlyphSize
Résultat ushort

ccSmallGlyphHeight public_oe static_oe property

public static ushort ccSmallGlyphHeight
Résultat ushort

ccSmallGlyphWidth public_oe static_oe property

public static ushort ccSmallGlyphWidth
Résultat ushort

ccSubcodecHeight public_oe static_oe property

public static ushort ccSubcodecHeight
Résultat ushort

ccSubcodecMaxWidth public_oe static_oe property

public static ushort ccSubcodecMaxWidth
Résultat ushort

ccSubcodecWidth public_oe static_oe property

public static ushort ccSubcodecWidth
Résultat ushort

copySrcRect public_oe static_oe property

public static RDPGFX_RECT16,Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx copySrcRect
Résultat Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_RECT16

copySrcRect2 public_oe static_oe property

public static RDPGFX_RECT16,Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx copySrcRect2
Résultat Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_RECT16

delaySeconds public_oe static_oe property

public static byte delaySeconds
Résultat byte

desktopHeight public_oe static_oe property

public static uint desktopHeight
Résultat uint

desktopWidth public_oe static_oe property

public static uint desktopWidth
Résultat uint

fillColorARGB public_oe static_oe property

public static RDPGFX_COLOR32,Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx fillColorARGB
Résultat Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_COLOR32

fillColorBlue public_oe static_oe property

public static RDPGFX_COLOR32,Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx fillColorBlue
Résultat Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_COLOR32

fillColorGreen public_oe static_oe property

public static RDPGFX_COLOR32,Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx fillColorGreen
Résultat Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_COLOR32

fillColorRed public_oe static_oe property

public static RDPGFX_COLOR32,Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx fillColorRed
Résultat Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_COLOR32

imgPos public_oe static_oe property

public static RDPGFX_POINT16,Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx imgPos
Résultat Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_POINT16

imgPos2 public_oe static_oe property

public static RDPGFX_POINT16,Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx imgPos2
Résultat Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_POINT16

imgPos3 public_oe static_oe property

public static RDPGFX_POINT16,Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx imgPos3
Résultat Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_POINT16

imgPos4 public_oe static_oe property

public static RDPGFX_POINT16,Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx imgPos4
Résultat Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_POINT16

largeCacheRect public_oe static_oe property

public static RDPGFX_RECT16,Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx largeCacheRect
Résultat Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_RECT16

largeSurfHeight public_oe static_oe property

public static ushort largeSurfHeight
Résultat ushort

largeSurfWidth public_oe static_oe property

public static ushort largeSurfWidth
Résultat ushort

maxCacheSize public_oe static_oe property

public static int maxCacheSize
Résultat int

maxCacheSizeForSmallCache public_oe static_oe property

public static int maxCacheSizeForSmallCache
Résultat int

maxCacheSlot public_oe static_oe property

public static ushort maxCacheSlot
Résultat ushort

maxCacheSlotForSmallCache public_oe static_oe property

public static ushort maxCacheSlotForSmallCache
Résultat ushort

maxMonitorCount public_oe static_oe property

public static uint maxMonitorCount
Résultat uint

maxRfxProgCodecContextId public_oe static_oe property

public static uint maxRfxProgCodecContextId
Résultat uint

segmentPartSize public_oe static_oe property

public static uint segmentPartSize
Résultat uint

smallHeight public_oe static_oe property

public static ushort smallHeight
Résultat ushort

smallWidth public_oe static_oe property

public static ushort smallWidth
Résultat ushort

surfHeight public_oe static_oe property

public static ushort surfHeight
Résultat ushort

surfHeight2 public_oe static_oe property

public static ushort surfHeight2
Résultat ushort

surfHeight3 public_oe static_oe property

public static ushort surfHeight3
Résultat ushort

surfPos public_oe static_oe property

public static RDPGFX_POINT16,Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx surfPos
Résultat Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_POINT16

surfPos2 public_oe static_oe property

public static RDPGFX_POINT16,Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx surfPos2
Résultat Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_POINT16

surfPos3 public_oe static_oe property

public static RDPGFX_POINT16,Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx surfPos3
Résultat Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_POINT16

surfPos4 public_oe static_oe property

public static RDPGFX_POINT16,Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx surfPos4
Résultat Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_POINT16

surfWidth public_oe static_oe property

public static ushort surfWidth
Résultat ushort

surfWidth2 public_oe static_oe property

public static ushort surfWidth2
Résultat ushort

surfWidth3 public_oe static_oe property

public static ushort surfWidth3
Résultat ushort