EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

MagGetFullscreenTransform function

Retrieves the magnification settings for the full-screen magnifier.

Syntax


BOOL WINAPI MagGetFullscreenTransform(
  _Out_  float *pMagLevel,
  _Out_  int *pxOffset,
  _Out_  int *pyOffset
);

Parameters

pMagLevel [out]

Type: float*

The current magnification factor for the full-screen magnifier. A value of 1.0 indicates that the screen content is not being magnified. A value above 1.0 indicates the scale factor for magnification. A value less than 1.0 is not valid.

pxOffset [out]

Type: int*

The x-coordinate offset for the upper-left corner of the unmagnified view. The offset is relative to the upper-left corner of the primary monitor, in unmagnified coordinates.

pyOffset [out]

Type: int*

The y-coordinate offset for the upper-left corner of the unmagnified view. The offset is relative to the upper-left corner of the primary monitor, in unmagnified coordinates.

Return value

Type: BOOL

Returns TRUE if successful, or FALSE otherwise.

Remarks

The offsets are not affected by the current dots per inch (dpi) setting.

Examples

The following code snippet retrieves the magnification value and offsets for the full-screen magnifier.


    // Get the current magnification level and offset.
    float  magLevel;
    int    xOffset, yOffset;

    if (!MagGetFullscreenTransform(&magLevel, &xOffset, &yOffset))
    {
        return E_FAIL;
    }
    
    // 
    // Do something with the magnification settings.
    //    


Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Magnification.h

Library

Magnification.lib

DLL

Magnification.dll

See also

MagSetFullscreenTransform

 

 

Contribuições da comunidade

ADICIONAR
Mostrar:
© 2014 Microsoft