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

Wimp_ReadPixTrans

Programmer's Reference Manuals
» Part 7 - The Desktop
» The Window Manager
» SWI Calls
» Wimp_ReadPixTrans

Wimp_ReadPixTrans

(SWI &400ED)
Entry
R0 &0xx if sprite in system area
&1xx if sprite in user area and R2 = name
&2xx if sprite in user area and R2 = pointer
R1 Pointer to spritearea (0 for system, 1 for Wimp)
R2 Pointer to sprite name, or sprite itself
R6 Block to receive scale factors
R7 Block to receive colour translation table (2, 4 or 16 bytes)
Exit
R0 Corrupt
Blocks at
R6 Contains Scale Factors
R7 Contains the Colour Translation Table

Use

The purpose of this call is to inform the application how the Wimp would plot the icon independent of the current screen mode.

Notes

Sprites that were created with less than four bits per pixel, have their pixels mapped onto the Wimp’s greyscale colours.

Applications wishing to plot a sprite using the best approximation to its actual colours should use ColourTrans.

See also

  • Scale Factors
  • Colour Translation Table
Created on June 9, 2009 23:45:23 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: The Window Manager SWI Calls, Scale Factors, Colour Translation Table

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