Documentation from drawrender.h |
Introduction | [top] |
ROV - Easy applications from C
Copyright - © Jason Tribbeck / 7th ARM 1994-2001
Contributing authors - Jason Tribbeck
File - drawrender.h
Type - helper
Description
The drawrender helper displays a drawfile on the screen. As it performs its own rendering, it does not use the DrawFile module. This also limits its capabilities, and may not render drawfiles correctly.
drawrender_render | [top] |
Renders a drawfile on the canvas
Parameters:
- void *file_ptr - the pointer to the DrawFile.
- int file_size - the size of the DrawFile.
- int ox - the offset to the left hand side of the DrawFile (canvas coordinates).
- int oy - the offset to the bottom of the DrawFile (canvas coordinates).
- int x0 - the left hand bounding box redraw area.
- int y0 - the bottom bounding box redraw area.
- int x1 - the right hand bounding box redraw area.
- int y1 - the top bounding box redraw area.
- double xs - the x scale.
- double ys - the y scale.Note - Certain packages (notably Artworks) are known not to compute the bounding box correctly, and these may have redraw problems.
void drawrender_render(void *file_ptr, int file_size, int ox, int oy, int x0, int y0, int x1, int y1, double xs, double ys);See also: drawrender_xsize(), drawrender_ysize()
drawrender_xsize | [top] |
Gives the x size of the DrawFile.
Parameters:
- void *file_ptr - the pointer to the DrawFile.
- double xs - the x scale.Note - Certain packages (notably Artworks) are known not to compute the bounding box correctly, and these may return incorrect values.
int drawrender_xsize(void *file_ptr, double xs);See also: drawrender_ysize()
drawrender_ysize | [top] |
Gives the y size of the DrawFile.
Parameters:
- void *file_ptr - the pointer to the DrawFile.
- double ys - the y scale.Note - Certain packages (notably Artworks) are known not to compute the bounding box correctly, and these may return incorrect values.
int drawrender_ysize(void *file_ptr, double ys);See also: drawrender_xsize()
Generated Thu Feb 7 23:22:51 2002