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

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

Public Properties

Property 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

Public Methods

Method 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 method

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
return Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_RECT16

DrawGradientImage() public static method

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
return System.Drawing.Bitmap

DrawImage() public static method

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
return System.Drawing.Bitmap

DrawImageWithUniqueColor() public static method

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
return System.Drawing.Bitmap

DrawSurfImage() public static method

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
return System.Drawing.Bitmap

ToRdpgfx_Color32() public static method

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

captureFromImage() public static method

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
return System.Drawing.Bitmap

captureFromScreen() public static method

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
return System.Drawing.Bitmap

drawDiagonal() public static method

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

Property Details

ClearCodecImage public_oe property

public Bitmap,System.Drawing ClearCodecImage
return System.Drawing.Bitmap

MaxBmpHeight public_oe static_oe property

public static ushort MaxBmpHeight
return ushort

MaxBmpWidth public_oe static_oe property

public static ushort MaxBmpWidth
return ushort

RfxProgCodecImage public_oe property

public Bitmap,System.Drawing RfxProgCodecImage
return System.Drawing.Bitmap

cacheKey public_oe static_oe property

public static ulong cacheKey
return ulong

cacheRect public_oe static_oe property

public static RDPGFX_RECT16,Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx cacheRect
return Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_RECT16

ccBandHeight public_oe static_oe property

public static ushort ccBandHeight
return ushort

ccBandHeight2 public_oe static_oe property

public static ushort ccBandHeight2
return ushort

ccBandWidth public_oe static_oe property

public static ushort ccBandWidth
return ushort

ccBandWidth2 public_oe static_oe property

public static ushort ccBandWidth2
return ushort

ccGlyphIndex public_oe static_oe property

public static ushort ccGlyphIndex
return ushort

ccGlyphWidth public_oe static_oe property

public static ushort ccGlyphWidth
return ushort

ccLargeBandHeight public_oe static_oe property

public static ushort ccLargeBandHeight
return ushort

ccLargeBandWidth public_oe static_oe property

public static ushort ccLargeBandWidth
return ushort

ccMaxBandHeight public_oe static_oe property

public static ushort ccMaxBandHeight
return ushort

ccMaxGlyphIndexNum public_oe static_oe property

public static ushort ccMaxGlyphIndexNum
return ushort

ccMaxGlyphSize public_oe static_oe property

public static ushort ccMaxGlyphSize
return ushort

ccSmallGlyphHeight public_oe static_oe property

public static ushort ccSmallGlyphHeight
return ushort

ccSmallGlyphWidth public_oe static_oe property

public static ushort ccSmallGlyphWidth
return ushort

ccSubcodecHeight public_oe static_oe property

public static ushort ccSubcodecHeight
return ushort

ccSubcodecMaxWidth public_oe static_oe property

public static ushort ccSubcodecMaxWidth
return ushort

ccSubcodecWidth public_oe static_oe property

public static ushort ccSubcodecWidth
return ushort

copySrcRect public_oe static_oe property

public static RDPGFX_RECT16,Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx copySrcRect
return 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
return Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_RECT16

delaySeconds public_oe static_oe property

public static byte delaySeconds
return byte

desktopHeight public_oe static_oe property

public static uint desktopHeight
return uint

desktopWidth public_oe static_oe property

public static uint desktopWidth
return uint

fillColorARGB public_oe static_oe property

public static RDPGFX_COLOR32,Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx fillColorARGB
return 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
return 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
return 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
return 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
return 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
return 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
return 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
return 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
return Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_RECT16

largeSurfHeight public_oe static_oe property

public static ushort largeSurfHeight
return ushort

largeSurfWidth public_oe static_oe property

public static ushort largeSurfWidth
return ushort

maxCacheSize public_oe static_oe property

public static int maxCacheSize
return int

maxCacheSizeForSmallCache public_oe static_oe property

public static int maxCacheSizeForSmallCache
return int

maxCacheSlot public_oe static_oe property

public static ushort maxCacheSlot
return ushort

maxCacheSlotForSmallCache public_oe static_oe property

public static ushort maxCacheSlotForSmallCache
return ushort

maxMonitorCount public_oe static_oe property

public static uint maxMonitorCount
return uint

maxRfxProgCodecContextId public_oe static_oe property

public static uint maxRfxProgCodecContextId
return uint

segmentPartSize public_oe static_oe property

public static uint segmentPartSize
return uint

smallHeight public_oe static_oe property

public static ushort smallHeight
return ushort

smallWidth public_oe static_oe property

public static ushort smallWidth
return ushort

surfHeight public_oe static_oe property

public static ushort surfHeight
return ushort

surfHeight2 public_oe static_oe property

public static ushort surfHeight2
return ushort

surfHeight3 public_oe static_oe property

public static ushort surfHeight3
return ushort

surfPos public_oe static_oe property

public static RDPGFX_POINT16,Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx surfPos
return 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
return 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
return 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
return Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RDPGFX_POINT16

surfWidth public_oe static_oe property

public static ushort surfWidth
return ushort

surfWidth2 public_oe static_oe property

public static ushort surfWidth2
return ushort

surfWidth3 public_oe static_oe property

public static ushort surfWidth3
return ushort