- 4.37.2.115. -
Table of Contents
4. Standard Units
4.37. Graph - Graph unit
4.37.2. Graph Unit Procedures and Functions
4.37.2.115. SetTranspMode procedure
4.37.2.115. SetTranspMode procedure
Targets: MS-DOS, Win32
Graph Unit
Sets/resets transparent mode for BitMaps output.
Declaration:
procedure SetTranspMode(Mode: Boolean; Color: DWORD);
Remarks:
TMT Graph supports transparent BitMaps blt.
If Mode parameter is True, all pixels consisting of
BitMap pixels with a color which is different from the given
Color value will be put to the screen.
Any pixel which coincides with the value Color will be ignored
(will not be placed on the screen). This is very useful
for games programming. Transparent BitMaps blt are supported in any graphic
mode (MCGA/VGA, SVGA 256, 32K, 64K, 16M and 16M+A colored modes,
with LFB and banked modes)!
SetTranspMode affects calls to the following routines only:
PutHTextel,
PutSprite and
PutImage.
- 4.37.2.115. -