L_VecGetPalette

#include "lvkrn.h"

L_LVKRN_API HPALETTE L_VecGetPalette(pVector)

const pVECTORHANDLE pVector;

/* pointer to a vector handle */

Returns the palette associated with the specified vector handle.

Parameter

Description

pVector

Pointer to the vector handle.

Returns

Returns the handle to the logical palette

Comments

You can use this palette to allow proper drawing of vector image colors in a paletteized system.

Required DLLs and Libraries

LVKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

L_VecSetPalette, L_VecPaint

Example

L_INT VecGetPaletteExample( pVECTORHANDLE pVector, HPALETTE* phPalette) { *phPalette = L_VecGetPalette( pVector ); return SUCCESS; }