Index

C/C++ Functions

pdDocInvertQuad

void pdDocInvertQuad(DT_PDDOC power_doc, DT_SRAST_L x1, DT_SRAST_L y1, DT_SRAST_L x2, DT_SRAST_L y2, DT_SRAST_L x3, DT_SRAST_L y3, DT_SRAST_L x4, DT_SRAST_L y4, DT_ID_SWORD format, DT_ID_SWORD subformat, const DT_MDC* memory_surface)

Short Description: Invert document area (quad)

The pdDocInvertQuad function applies an inversion effect to a quadrangle within an existing memory surface. The blend parameters of the effect can be set by calling pdDocSetInvert.

Parameters

ParameterDescription

power_doc

Handle of the associated Power Engine document.

x1

X1 coordinate of the rectangular area, in pixels.

y1

Y1 coordinate of the rectangular area, in pixels.

x2

X2 coordinate of the rectangular area, in pixels.

y2

Y2 coordinate of the rectangular area, in pixels.

x3

X3 coordinate of the rectangular area, in pixels.

y3

Y3 coordinate of the rectangular area, in pixels.

x4

X4 coordinate of the rectangular area, in pixels.

y4

Y4 coordinate of the rectangular area, in pixels.

format

Same as in pdDocDraw. See the pdDocDraw function for details.

subformat

Same as in pdDocDraw. See the pdDocDraw function for details.

memory_surface

A pointer to the DT_MDC structure that describes the surface. See D-Type Standard Engine Manual for details.

Comments

This function can be used to invert the color of an area within an existing memory surface without the need to redraw the entire area by calling the pdDocDraw function. Depending on the blend parameters (set by calling the pdDocSetInvert function), certain inversion effects are reversible. This means that when applied two times successively to the same pixels, the result will be the same as if the effect was not applied at all. For this reason, these inversion effect can be used to visually indicate various types of temporary user selections (e.g. the cursor movements, text or block selections).

Related Functions

pdDocDraw
pdDocInvertLine, pdDocInvertBox, pdDocInvertFrames

 

Index