L_VecIsEmpty

#include "lvkrn.h"

L_LVKRN_API L_BOOL L_VecIsEmpty(pVector)

const pVECTORHANDLE pVector;

/* pointer to a vector handle */

Determines whether the specified vector handle is empty.

Parameter

Description

pVector

Pointer to a vector handle that references a vector image.

Returns

TRUE

The vector image is empty.

FALSE

The vector image is not empty.

Comments

A vector image is considered empty when it has no objects.

An empty vector image can still have empty layers.

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_VecEmpty

Topics:

Working with Vector Handles

Example

This example determines whether a vector image is empty or not.

L_INT VecIsEmptyExample(pVECTORHANDLE pVector)
{
   if( L_VecIsEmpty( pVector ) )
      MessageBox( NULL, TEXT("Vector is empty!"), TEXT("Empty"), MB_OK );
   else
      MessageBox( NULL, TEXT("Vector is not empty!"), TEXT("Empty"), MB_OK );

   return SUCCESS;
}