MagImageScalingCallback callback function (magnification.h)

Note  The MagImageScalingCallback function is deprecated in Windows 7 and later, and should not be used in new applications. There is no alternate functionality.
 
Prototype for a callback function that implements a custom transform for image scaling.

Syntax

MagImageScalingCallback Magimagescalingcallback;

BOOL Magimagescalingcallback(
  [in]  HWND hwnd,
  [in]  void *srcdata,
  [in]  MAGIMAGEHEADER srcheader,
  [out] void *destdata,
  [in]  MAGIMAGEHEADER destheader,
  [in]  RECT unclipped,
  [in]  RECT clipped,
  [in]  HRGN dirty
)
{...}

Parameters

[in] hwnd

Type: HWND

The magnification window.

[in] srcdata

Type: void*

The input data.

[in] srcheader

Type: MAGIMAGEHEADER

The description of the input format.

[out] destdata

Type: void*

The output data.

[in] destheader

Type: MAGIMAGEHEADER

The description of the output format.

[in] unclipped

Type: RECT

The coordinates of the scaled version of the source bitmap.

[in] clipped

Type: RECT

The coordinates of the window to which the scaled bitmap is clipped.

[in] dirty

Type: HRGN

The region that needs to be refreshed.

Return value

Type: BOOL

Returns TRUE if successful, or FALSE otherwise.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header magnification.h

See also

MAGIMAGEHEADER

MagGetImageScalingCallback