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 "Build FAQ/versions/8" does not exist. Please create it now, or hit the "back" button in your browser.

Transformation Matrix

Programmer's Reference Manuals
» Part 8 - Non-kernel input/output
» The Font Manager
» SWI Calls
» Font_FindFont
» Font Identifier String
» Font Transformation Matrix
» Transformation Matrix

Transformation Matrix

Offset Var Contents
+0 a X multiplier, for new x
+4 b X multiplier, for new y
+8 c Y multiplier, for new x
+12 d Y multiplier, for new y
+16 e X translation, in draw units
+20 f Y translation, in draw units

Notes

The new co-ordinates are calculated using the following formulas:

new x = ax + cy + e
new y = bx + dy + f

Or in matrix form:

a b 0
c d 0
e f 1

See also

  • Draw_Fill
  • Draw_FillClipped
  • Draw_ProcessPath
  • Font_FindFont
  • Transformation Examples
Revised on October 25, 2009 20:26:53 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: Font Transformation Matrix, Draw Transform Units, Transformation Examples, Draw_Fill, Draw_Fill Path Block, Draw_Fill Fill Style, Draw_FillClipped, Draw_Fill Clip Block, Draw_ProcessPath, Draw_Stroke, Draw_StrokeClipped, Draw_StrokeClipped Clip Block, Draw_StrokePath, Draw_TransformPath, Draw Module Technical Details, *Render

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