L_VecSetBackgroundColor

#include "ltvkrn.h"

L_LVKRN_API L_INT L_VecSetBackgroundColor(pVector, Color)

Sets the current background color.

Parameters

pVECTORHANDLE pVector

Pointer to a vector handle.

L_COLORREF Color

The background color to set.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

If L_VecPaint is called, with bEraseBkgnd set to TRUE, this color will be used to erase the background.

Required DLLs and Libraries

See Also

Functions

Example

This example will set the background color of a vector handle.

L_LTVKRNTEX_API L_INT VecSetBackgroundColorExample( 
   HWND hWnd, 
   pVECTORHANDLE pVector) 
{ 
   L_INT nRet; 
   CHOOSECOLOR cc;               /* ChooseColor Windows structure */ 
   COLORREF ccCustColors[16];    /* Custom colors */ 
 
   memset( &cc, 0, sizeof( CHOOSECOLOR )); 
   cc.lStructSize    = sizeof( CHOOSECOLOR ); 
   cc.hwndOwner      = hWnd; 
   cc.rgbResult      = L_VecGetBackgroundColor( pVector ); 
   cc.lpCustColors   = ccCustColors; 
   cc.Flags          = CC_RGBINIT; 
 
   nRet = SUCCESS; 
   if( ChooseColor( &cc )) 
      nRet = L_VecSetBackgroundColor( pVector, cc.rgbResult ); 
 
   return nRet; 
} 

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

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