130: SetPen(Hande, Mode, Width, Style, R, G, B);
This intrinsic sets the way all lines are drawn for an image. This includes the outlines of rectangles and circles.
Handle: This specifies the bitmap or image to which the settings apply.
Mode: 0 = Normal color, 1 = XOR color with the image background.
Mode
|
Short Description
|
Description
|
0
|
Copy
|
Normal drawing
|
1
|
XOR
|
XOR operation between pen color and drawing surface color
|
2
|
Not
|
Inverse of drawing surface color
|
3
|
Not Copy
|
Inverse of pen color
|
4
|
Not XOR
|
Inverse of XORing pen color and drawing surface color
|
5
|
Merge
|
Combination of pen color and drawing surface color
|
6
|
Not Merge
|
Inverse of combination of pen color and drawing surface color
|
7
|
Merge Pen Not
|
Combination of pen color and inverse of drawing surface color
|
8
|
Merge Not Pen
|
Combination of drawing surface color and inverse of pen color
|
9
|
Mask
|
Combination of colors common to both pen and drawing surface color
|
10
|
Not Mask
|
Inverse of Mask - combination of colors common to both pen and drawing surface color
|
11
|
Mask Pen Not
|
Mask combination of colors common to both pen and inverse of drawing surface color
|
12
|
Mask Not Pen
|
Combination of colors common to both drawing surface background and inverse of pen
|
Width: This specifies the line width in pixels.
Style: 0=Solid, 1=Dash, 2=Dot, 3=DashDot, 4=DashDotDot, 5=Clear
R,G,B: This specifies the line color. EXPL supports special RGB modes that make them compatible with pervious VGA color palettes and versions of XPL0.
|