All Manuals > CAPI User Guide and Reference Manual > 22 GRAPHICS-PORTS Reference Entries

draw-point Function

Summary

Draws a pixel or unit square at a given point.

Package

graphics-ports

Signature

draw-point port x y &rest args

Arguments
port
A graphics port.
A real number.
A real number.
args
graphics-state parameters passed as keyword arguments.
Description

The function draw-point draws a single-pixel point at (x y). The transform, foreground, background, operation, mask, pattern, shape-mode and compositing-mode from port's graphics-state are all used, unless overridden in args. Additionally on X11/Motif only, stipple is used.

When drawing-mode is :compatible the output is a single pixel. Note that its position is transformed in the normal way.

When drawing-mode is :quality this draws a unit square as if by draw-rectangle, transformed in the normal way.

See also

draw-points
graphics-state


CAPI User Guide and Reference Manual (Unix version) - 01 Dec 2021 19:33:02