Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Related Pages  

Nano-X image file API.
[Nano-X public API]

Functions to draw images from standard image file formats. More...

Functions

void GrDrawImageToFit (GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y, GR_SIZE width, GR_SIZE height, GR_IMAGE_ID imageid)
 Draws the image from the specified image buffer at the specified position on the specified drawable using the specified graphics context.

void GrFreeImage (GR_IMAGE_ID id)
 Destroys the specified image buffer and reclaims the memory used by it.

void GrGetImageInfo (GR_IMAGE_ID id, GR_IMAGE_INFO *iip)
 Fills in the specified image information structure with the details of the specified image buffer.

GR_IMAGE_ID GrLoadImageFromBuffer (void *buffer, int size, int flags)
 FIXME.

void GrDrawImageFromBuffer (GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y, GR_SIZE width, GR_SIZE height, void *buffer, int size, int flags)
 FIXME.


Detailed Description

Functions to draw images from standard image file formats.


Function Documentation

void GrDrawImageFromBuffer GR_DRAW_ID  id,
GR_GC_ID  gc,
GR_COORD  x,
GR_COORD  y,
GR_SIZE  width,
GR_SIZE  height,
void *  buffer,
int  size,
int  flags
 

FIXME.

Parameters:
id FIXME
gc FIXME
x FIXME
y FIXME
width FIXME
height FIXME
buffer FIXME
size FIXME
flags FIXME

Todo:
FIXME document this

void GrDrawImageToFit GR_DRAW_ID  id,
GR_GC_ID  gc,
GR_COORD  x,
GR_COORD  y,
GR_SIZE  width,
GR_SIZE  height,
GR_IMAGE_ID  imageid
 

Draws the image from the specified image buffer at the specified position on the specified drawable using the specified graphics context.

The width and height values specify the size of the image to draw- if the actual image is a different size, it will be scaled to fit.

Parameters:
id the ID of the drawable to draw the image onto
gc the ID of the graphics context to use when drawing the image
x the X coordinate to draw the image at relative to the drawable
y the Y coordinate to draw the image at relative to the drawable
width the maximum image width
height the maximum image height
imageid the ID of the image buffer containing the image to display

void GrFreeImage GR_IMAGE_ID  id  ) 
 

Destroys the specified image buffer and reclaims the memory used by it.

Parameters:
id ID of the image buffer to free

void GrGetImageInfo GR_IMAGE_ID  id,
GR_IMAGE_INFO *  iip
 

Fills in the specified image information structure with the details of the specified image buffer.

Parameters:
id ID of an image buffer
iip pointer to a GR_IMAGE_INFO structure

GR_IMAGE_ID GrLoadImageFromBuffer void *  buffer,
int  size,
int  flags
 

FIXME.

Parameters:
buffer FIXME
size FIXME
flags FIXME

Todo:
FIXME document this


Generated on Sun May 18 21:03:07 2003 for Microwindows Nano-X API by doxygen1.3