Previous: 4.51.2.4.57. ogSetRGBPalette() To the Table of Contents Next: 4.51.2.4.59. ogSpline()
4.51.2.4.57. ogSetRGBPalette() Table of Contents 4.51.2.4.59. ogSpline()

- 4.51.2.4.58. -
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.58. ogSetTransparentColor()


4.51.2.4.58. ogSetTransparentColor()

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

Sets the internal transparent color.

Declaration:
  function ogSetTransparentColor(colour:uInt32):uInt32;
Remarks:

The internal transparent color is used when coordinates for ogGetPixel() are out of bounds. ogBlit uses ogGetPixel() to construct the blit, so any part of the blit that is out of bounds will be considered transparent.

Returns:

Previous transparent color in packed pixel format.

See also:


Previous: 4.51.2.4.57. ogSetRGBPalette() To the Table of Contents Next: 4.51.2.4.59. ogSpline()
4.51.2.4.57. ogSetRGBPalette() Table of Contents 4.51.2.4.59. ogSpline()

- 4.51.2.4.58. -