TransparentColorEnable Function

Microchip Graphics Library

Microchip Graphics Library
TransparentColorEnable Function
C
void TransparentColorEnable(
    GFX_COLOR color
);
Overview

Sets current transparent color. PutImage() will not render pixels that matches the set transparent color. To enable Transparent Color feature, define the macro USE_TRANSPARENT_COLOR in the GraphicsConfig.h file.

Description

Input Parameters
Input Parameters 
Description 
GFX_COLOR color 
Chosen transparent color. 
Returns

none

Preconditions

none

Side Effects

None

Example
TransparentColorEnable(BLACK);
PutImage(0,0, (void*)&ScreenBackground);
PutImage(0,0, (void*)&RibbonIcon);
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved