win32gui.SetStretchBltMode

int = SetStretchBltMode(hdc, StretchMode )

Sets the stretching mode used by win32gui::StretchBlt

Parameters

hdc : PyHANDLE

Handle to a device context

StretchMode : int

One of BLACKONWHITE,COLORONCOLOR,HALFTONE,STRETCH_ANDSCANS,STRETCH_DELETESCANS,STRETCH_HALFTONE,STRETCH_ORSCANS, or WHITEONBLACK (from win32con)

Return Value

If the function succeeds, the return value is the previous stretching mode.
If the function fails, the return value is zero.