RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Page "Wimp_Poll/versions/5" does not exist. Please create it now, or hit the "back" button in your browser.

Draw_Fill Path Block

Programmer's Reference Manuals
» Part 8 - Non-kernel input/output
» Draw Module
» SWI Calls
» Draw_Fill
» Path Block

Path Block

Code Parameters Meaning
0 - End of path (when writing a path, a parameter is used to indicate the remaining length of the block, which is updated as data is written and the end of path marker is moved)
1 Pointer Continuation of path at pointer
2 X, Y Move to x,y starting a new sub-path
3 X, Y Move to x,y without starting a new sub-path (internal use)
4 - Close sub-path with move
5 - Close sub-path with line
6 CX1, CY1, CX2, CY2, X, Y Bezier curve to x,y using control points cx1, cy1 and cx2, cy2
7 X, Y Move to x,y without starting a new sub-path (mostly used for internal use)
8 X, Y Line to x,y

Notes

Draw path blocks consist of a block of words; code(element type) followed by any parameters. The block is terminated by an ‘End of Path’ element.

There are some order constraints on these codes (element types):

  • path elements 2 and 3 start new subpaths
  • path elements 6,7 and 8 may only appear while there is a current subpath
  • path elements 4 and 5 may only appear while there is a current subpath, and end it, leaving no current subpath
  • path elements 2 and 3 can also be used to close the current subpath (which is part of starting a new subpath)

See also

  • Draw_Fill
  • Draw_Fill Fill Style
  • Draw_FillClipped
  • Draw_ProcessPath
  • Transformation Matrix
Revised on November 4, 2009 10:38:18 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: Draw_Fill, Draw_Fill Fill Style, Draw_FillClipped, Draw_Fill Clip Block, Draw_FlattenPath, Draw Output To A Path Block, Draw_ProcessPath, Draw_Stroke, Draw_StrokeClipped, Draw_StrokeClipped Clip Block, Draw_StrokePath, Draw_TransformPath, Draw Module Technical Details

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys