NAME

draw_pix -- draw pixel rectangle

PROTOTYPE

unitptr draw_pix( char *pcWdw, int iDx, int iDy, char *pcFmt, unitptr uHost)

ARGUMENTS

char *pcWdw
window host name
int iDx
width
int iDy
height
char *pcFmt
options
unitptr uHost
host unit

RETURN VALUE:

A pointer to the created unit or NULL in the case of an error.

INTERFACE OF CREATED UNIT:

X_in[2]:
(input field 0) lower left corner
Y_in[iDx*iDy]:
(packed input field 1) the pixel values
Z_in[1]:
(input field 2) zoom factor and control field
CTL_in[]:
(control field)

EXECUTION OF CREATED UNIT:

INITIALIZATION:

DESCRIPTION:

OPTIONS:

%i:jo
set `hot spot'' (hx,hy) to (i,j). This has the effect to align pixel (i,j) of iDxxiDy pixel rectangle with the specified image location at input field 0. If only %o is specified, this will be taken as (i,j)=(iDx/2,iDy/2), i.e., for iDx, iDy both odd, the central pixel of the pixel rectangle will be aligned with the specified positions.

EXAMPLES:

STATUS:

Preliminary.

SEE ALSO:

FILE

/amnt/loge/users/nistaff02/nistaff/rhaschke/nst7/man/../o.linux//../nstsrc/nst_draw.c