Skip to content

DrawModeConstants

GDI raster-operation values for the DrawMode property, controlling how the pen colour is combined with the existing pixels when drawing with PSet, Line, Circle, and similar methods.

ConstantValueDescription
vbBlackness1Output is black.
vbNotMergePen2Inverse of vbMergePen.
vbMaskNotPen3Combination of the colours common to the background and the inverse of the pen.
vbNotCopyPen4Inverse of vbCopyPen.
vbMaskPenNot5Combination of the pen and the inverse of the screen.
vbInvert6Inverse of the existing screen colour.
vbXorPen7XOR of the pen and the screen.
vbNotMaskPen8Inverse of vbMaskPen.
vbMaskPen9Combination of the colours common to both the pen and the screen.
vbNotXorPen10Inverse of vbXorPen.
vbNop11No drawing --- the screen is left unchanged.
vbMergeNotPen12Combination of the screen and the inverse of the pen.
vbCopyPen13Output is the pen colour (the default).
vbMergePenNot14Combination of the pen and the inverse of the screen.
vbMergePen15Combination of the pen colour and the screen colour.
vbWhiteness16Output is white.

twinBASIC and LOGO copyright of "WaynePhillipsEA" author