XPRINT GET MIX statement  

Purpose

Retrieve the color mix mode for a host printer page.

Syntax

XPRINT GET MIX To MixVar&

Function Form:

MixVar& = XPRINT(MIX)

Remarks

Prior to any XPRINT operations, a host printer must first be selected with XPRINT ATTACH.  There are 16 mix modes available to use for mixing the drawing color with the color that already exists at the drawing location.  The mix mode equates are predefined in PowerBASIC.  If executed without a host printer attached, error 57 is generated.

%MIX_BLACKNESS

Pixel is always 0 (black).

%MIX_NOTMERGESRC

Pixel is the inverse of the MergeSrc color.

%MIX_MASKNOTSRC

Pixel is a combination of the colors common to both the pixel and the inverse of the source.

%MIX_NOTCOPYSRC

Pixel is the inverse of the pen color.

%MIX_MASKSRCNOT

Pixel is a combination of the colors common to both the source and the inverse of the pixel.

%MIX_NOT

Pixel is the inverse of the pixel color.

%MIX_XORSRC

Pixel is a combination of the colors in the source and in the pixel, but not in both.

%MIX_NOTMASKSRC

Pixel is the inverse of the MaskSrc color.

%MIX_MASKSRC

Pixel is a combination of the colors common to both the source and the pixel.

%MIX_NOTXORSRC

Pixel is the inverse of the XorSrc color.

%MIX_NOP

Pixel remains unchanged.

%MIX_MERGENOTSRC

Pixel is a combination of the source color and the inverse of the pixel color.

%MIX_COPYSRC

Pixel is the source color (default).

%MIX_MERGESRCNOT

Pixel is a combination of the source color and the inverse of the pixel color.

%MIX_MERGESRC

Pixel is a combination of the source color and the pixel color.

%MIX_WHITENESS

Pixel is always 1 (white).

See also

XPRINT ATTACH, XPRINT SET MIX