<<

Contents

Search

>>

 

IMAGE_TRANSPARENTCOLOR

 

 

Instruction

 

 

Syntax:

IMAGE_TRANSPARENTCOLOR = <Red>,<Green>,<Blue>

 

<Red>

= <NUM-EXPRESSION>

<Green>

= <NUM-EXPRESSION>

<Blue>

= <NUM-EXPRESSION>

 

 

Meaning:

Defines the transparent color for gif files, png files and jpg files

 

All pixels of this color appear transparent on screen.

 

At the start of the program the color is set to -1,-1,-1, which means that no transparency color has been defined. 

 

The color shares must be between 0 and 255 respectively.

 

The assignment IMAGE_TRANSPARENTCOLOR = -1,-1,-1 has the effect that there will be no transparent display.

 

Parameter:

Red

Red value

Green

Green value

Blue

Blue value

 

Sample:

/* show white pixels transparent

IMAGE_TRANSPARENTCOLOR = 255,255,255

 

See also:

BMP_TRANSPARENTCOLOR

LOAD_PICTURE

GET_COLORS$

SET_COLORS