h6. [[WindowManager]] h6(. » [[WindowManager SWI Calls|SWI Calls]] h6((. » Wimp_ReadPixTrans h2. Wimp_ReadPixTrans h5. (SWI &400ED) |_<. Entry | | |/3<^. 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|Scale Factors]] | |<^. R7 |Contains the [[Colour Translation Table|Colour Translation Table]] | h4. Use The purpose of this call is to inform the application how the Wimp would plot the icon independent of the current screen mode. h4. 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. h4. See also * [[Scale Factors|Scale Factors]] * [[Colour Translation Table|Colour Translation Table]]