MTestScreenCapture Class Reference

class MTestScreenCapture

Window Server client interface for screen capture.

All functions in MTestScreenCapture will automatically flush the client-server session buffer as part of their behavior.

Public Member Functions
TInt ComposeScreen(const CFbsBitmap &)
TInt GetCompositedSize(TSize &)
TInt TranslateExtent(const TRect &, TRect &)
Public Member Enumerations
enumanonymous { KUidTestScreenCaptureIf = 0x10286504, ETypeId = KUidTestScreenCaptureIf }
enumTWsTestScreenCaptureOpcodes { EWsScsInvalid = 0x00000000, EWsScsScreenCompose = 0x00000001, EWsScsTranslateExtent = 0x00000002 }

Member Functions Documentation

ComposeScreen(const CFbsBitmap &)

TInt ComposeScreen(const CFbsBitmap &aBitmap)const [pure virtual]

Retrieves the composited screen content. A new composition is initiated and the result is copied in the bitmap created by user. The only bitmap mode supported is EColor16MU.

This function always causes a flush of the window server buffer.

Parameters

const CFbsBitmap & aBitmapretturns the composited screen content.

GetCompositedSize(TSize &)

TInt GetCompositedSize(TSize &aSize)const [pure virtual]

Retrieves the size of the composition area in pixels.

This function always causes a flush of the window server buffer.

Parameters

TSize & aSizereturns the composition area size

TranslateExtent(const TRect &, TRect &)

TInt TranslateExtent(const TRect &aSource,
TRect &aTarget
)const [pure virtual]

Maps the source rectangle from application coordinate space to a target coordinate space. Since there may be scaling involved, the target rectangle may be larger or smaller than the source one, or even become empty.

This function always causes a flush of the window server buffer.

Parameters

const TRect & aSourcesource rectangle
TRect & aTargettarget rectangle to be filled in

Member Enumerations Documentation

Enum anonymous

Enumerators

KUidTestScreenCaptureIf = 0x10286504
ETypeId = KUidTestScreenCaptureIf

Enum TWsTestScreenCaptureOpcodes

Enumerators

EWsScsInvalid = 0x00000000
EWsScsScreenCompose = 0x00000001
EWsScsTranslateExtent = 0x00000002