PLASMAINFO - Raster Imaging C API Help

PLASMAINFO

typedef struct tagPLASMAINFO 
{ 
   L_UINT uStructSize; 
   L_UINT uRedFreq; 
   L_UINT uGreenFreq; 
   L_UINT uBlueFreq; 
   L_UINT uOpacity; 
   L_UINT uShift; 
   L_UINT uSize; 
   L_UINT uFlags; 
} PLASMAINFO, *pPLASMAINFO; 

The PLASMAINFO structure provides information about the color to be used in the L_PlasmaFilterBitmap function.

Comments

The uOpacity value will always be considered to be 0, unless specified otherwise by a value between (and including) 0 to 100.

Use the uRedFreq, uGreenFreq, and uBlueFreq members of the PLASMAINFO structure to create a custom color pattern. To use them, pass the PLSCLR_CUST flag to L_PlasmaFilterBitmap. Otherwise, their values will be ignored.

The PLSCLR_HUE value is a predefined color pattern that is based on the HLS color space. It creates plasma patterns by changing hue values.

The PLSCLR_RGB1 value is a predefined color pattern that is based on the RGB color space. Different combinations of red, green and blue frequencies produce different results.

Like the PLSCLR_RGB1 value, the PLSCLR_RGB2 value is based on the RGB color space, but uses a different combination of red, green and blue frequencies.

The color palette used for uShift is a continuous cylindrical color palette. In the following figures, one shows where on the palette a value of 0 lies, and the other one shows where on the palette the maximum value lies:

image\uShift.gif
Help Version 20.0.2018.7.30
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help