L_VecGetBackgroundColor

Summary

Gets the current background color.

Syntax

#include "ltvkrn.h"

L_LVKRN_API L_COLORREF L_VecGetBackgroundColor(pVector)

Parameters

const pVECTORHANDLE pVector

Pointer to a vector handle.

Returns

COLORREF value of the current background color.

Comments

This function returns the current background color. If L_VecPaint is called with the bEraseBkgnd parameter set t o TRUE, this is the color that is used to erase the background.

Required DLLs and Libraries

See Also

Functions

Example

This example will get the current background color and display its RGB values in a message box.

L_INT VecGetBackgroundColorExample(pVECTORHANDLE pVector) 
{ 
   COLORREF  color;            /* Background color */ 
   L_TCHAR   szBuffer[ 80 ];   /* Buffer */ 
 
   /* Get background color */ 
   color = L_VecGetBackgroundColor( pVector ); 
 
   /* Show it in a message box */ 
   wsprintf( szBuffer, TEXT("%02x, %02x, %02x"), 
             GetRValue( color ), GetGValue( color ), GetBValue( color ) ); 
                
   MessageBox( NULL, szBuffer, TEXT("Background Color"), 0 ); 
 
   return SUCCESS; 
} 

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.