Sign in Join
FPDoc Onlineexperiment

TWidgetSet.SetStretchBltMode function

Member of TWidgetSetpublicIn unit InterfaceBase

Sets the StrechBlt mode for an device context.

Declaration

pascal
function SetStretchBltMode(DC: HDC; StretchMode: Integer): Integer
 ; virtual

Arguments

DC

The Device Context.

StretchMode

The new mode.

Function result

The previous mode, zero on failure.

Description

The following modes are defined:

  • BLACKONWHITE - preserves black pixels in a monochrome bitmap.
  • COLORONCOLOR
  • HALFTONE, STRETCH_HALFTONE
  • WHITEONBLACK - preserves white pixels in a monochrome bitmap.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.