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

ColourTrans_ReadPalette

Programmer's Reference Manuals
» Part 8 - Non-kernel input/output
» ColourTrans
» SWI Calls
» ColourTrans_ReadPalette

ColourTrans_ ReadPalette

(SWI &4075C)
Entry
R0 Source mode
R1 Source palette pointer
R2 Pointer to buffer, or 0 to return size needed in R3
R3 Size of buffer (if R2 is non-zero)
R4 Flags (only used if R0 >= 256)
Exit
R2 Incremented by words written
R3 Remaining size of buffer

Use

The purpose of this call is to read either the screen’s palette, or a sprite’s palette.

Notes

All entries are returned as true 24-bit RGB, calibrated if required.

In 256 colour modes the full 256 palette entries are returned, rather than the 16 used by VIDC 1.

See also

  • ColourTrans_WritePalette
Created on September 27, 2009 16:33:20 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: ColourTrans SWI Calls, Select Table Source Mode, Select Table Source Palette Pointer, ColourTrans_WritePalette, ColourTrans_WritePalette Flags, Colour Vector SWI Numbers

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