- 4.51.2.4.62. -
Table of Contents
4. Standard Units
4.51. ObjGfx40 - ObjectGraphics 4.0 Unit
4.51.2. ObjGfx40 Unit Object Types
4.51.2.4. ogSurface object
4.51.2.4.62. ogUnpackRGBA()
4.51.2.4.62. ogUnpackRGBA()
Targets: MS-DOS, Win32 console
ObjGfx40 Unit
Unpacks a pixel.
Declaration:
procedure ogUnpackRGBA(colour:uInt32; var red, green, blue, alpha:uInt8);
Remarks:
Breaks a packed pixel apart based on the bitdepth and pixel format
of the surface. Performs a lookup in the palette array for 8BPP surfaces (alpha
is ignored).
See also:
- 4.51.2.4.62. -