Set image transparent ON/OFF

Description

This setting only affect color image command. If transparent ON, the Black area(pixels RGB value equal 0) on color image will not cover the contents on the screen. 

  This command affect all following color image outputs to screen, until set to a different value.

NOTE: Only true black can be set to be transparent: means the Red/Green/Blue value must be all 0

Usage:

Direct:

"TRANSd"

Arduino:

void setTrans(uint8_t d)

C:

void Digole_setTrans(uint8_t d)

Parameters:

d

A byte of flag, if d=1, turn transparent ON, otherwise turn OFF

Return:

none

Example (Arduino):

mydisp.setTrans(1); //set transparent ON

Example(direct)

serial.writeString("TRANS1"); //set transparent ON

eg.:

Changelog

Version Description
   

See Also

Color image