Unit 'agraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

SetABPenDrMd

Set pen colors and draw mode for a RastPort.

Declaration

Source position: agraphics.pas line 2378

procedure SetABPenDrMd(

  rp: pRastPort;

  apen: LongWord;

  bpen: LongWord;

  drawmode: LongWord

);

Arguments

rp

  

A pointer to a RastPort

apen

  

primary pen value

bpen

  

secondary pen value

drawmode

  

0-255, some combinations may not make much sense.

Description

Set the pen values and drawing mode for lines, fills and text.

This call is essentially the same as a sequence of SetAPen()/SetBPen()/SetDrMD() calls, except that it is significantly faster. The minterms will only be generated once, or not at all if nothing changed (warning to illegal RastPort pokers!).

This functions turns on PenMode for the RastPort.

See also

SetAPen

  

Set the primary pen for a RastPort.

SetBPen

  

Set secondary pen for a RastPort

SetDrMD

  

Set drawing mode for a RastPort


Documentation generated on: 2021-07-30