Alpha Blending Functions

Microchip Graphics Library

Microchip Graphics Library
Alpha Blending Functions

Alpha-Blend support are two levels. USE_ALPHABLEND_LITE and USE_ALPHA_BLEND. 

 

USE_ALPHABLEND_LITE 

When this macro is enabled in GraphicsConfig.h, Primitive Layer support for an Alpha-Blended Bar() is enabled. 

A rectangular area can be Alpha-Blended with a specific color by doing the following:

  1. SetAlpha() - this will set the Alpha-Blend value
  2. SetColor() - this will define the color that will be Alpha-Blended to the rectangular area
  3. Bar(left, top, right, bottom) - this will perform the Alpha-Blending on the rectangular area defined by left, top, right and bottom parameters.
 

USE_ALPHABLEND 

This is full Alpha-Blend support but is mainly performed by the display driver used. Windows can be Alpha-Blended using the driver level routines with or without the hardware acceleration. Refer to the specific display driver for support.

Functions
 
Name 
Description 
 
This Alpha-Blends a foreground and a background stored in frames to a destination window. A frame is a memory area that contain array of pixels information. An example would be a display buffer. This operation can be performed on a single frame (where foregroundArea, backgroundArea and destinationArea all points to the same frame), 2 frames (where two of the three areas are pointing to the same frame and one is another frame), or 3 frames (where each area is a separate frame). The Alpha-Blending is performed on the windows inside the specified frames. These windows are defined by the offsets... more 
Macros
Name 
Description 
This macro sets the alpha value. Enabling this feature requires the macros USE_ALPHABLEND_LITE defined in the GraphicsConfig.h. See USE_ALPHABLEND_LITE for information on supported primitive rendering functions. 
This macro returns the current alpha value. Enabling this feature requires the macros USE_ALPHABLEND_LITE defined in the GraphicsConfig.h. 
Links
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved