lvgcirc(3)

LIBRARY ROUTINE
lvgcirc - Creates an image of a filled circle

LIBRARY CALL
#include "vinclude.h"
int
lvgcirc (image, rows, cols, type, bgnd, fgnd, x, y, d)
struct xvimage **image;
int rows, cols, type;
float bgnd,fgnd,x,y,d;

INPUT

image
    input image structure

rows
    the desired number of rows in output image

cols
    the desired number of columns in output image

type
    the data storage type of the resulting image

bgnd
    the background intensity

fgnd
    the forground intensity

x   the X coordinate of the center of the circle

y   the Y coordinate of the center of the circle

d   diameter of circle (in pixels)

OUTPUT

image
    holds the resulting output image.

MODIFICATIONS

DESCRIPTION
vgcirc creates an image of a filled circle. The background intensity is set by the -b argument. The foreground or circle intensity is set by the -f argument. The circle can be placed anywhere, and is NOT required to lie completely within the image boundaries.

The position of the center of the circle and its diameter can all be specified as floating point numbers, allowing sub-pixel positioning of the circle.

SEE ALSO
vgcirc(1), intro(3), vipl(3), verror(3), vutils(3)

RESTRICTIONS
lvgcirc will generate only BYTE or FLOAT images.

AUTHOR
Scott Wilson

COPYRIGHT
Copyright 1991, University of New Mexico. All rights reserved.