DATASERV (kdatafmt) functions


LIBRARY ROUTINE

pnm_create - creates a pnm structure and allocates associated data.

LIBRARY CALL

pnm *pnm_create(
   int width,
   int height,
   int type,
   int raw)

INPUT

none

OUTPUT

none

RETURN VALUE

the pnm structure or NULL

DESCRIPTION

Creates a portable anymap (bitmap,greymap,pixmap) pnm structure and it's associated data.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$DATASERV/objects/library/kdatafmt/src/pnm.c

SEE ALSO

kformats(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.