MagImageScalingCallback callback function

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


BOOL WINAPI 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

hwnd [in]

Type: HWND

The magnification window.

srcdata [in]

Type: void*

The input data.

srcheader [in]

Type: MAGIMAGEHEADER

The description of the input format.

destdata [out]

Type: void*

The output data.

destheader [in]

Type: MAGIMAGEHEADER

The description of the output format.

unclipped [in]

Type: RECT

The coordinates of the scaled version of the source bitmap.

clipped [in]

Type: RECT

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

dirty [in]

Type: HRGN

The region that needs to be refreshed.

Return value

Type: BOOL

Returns TRUE if successful, or FALSE otherwise.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Magnification.h

See also

MagGetImageScalingCallback
MAGIMAGEHEADER

 

 

Community Additions

ADD
Show: