L_VecGetPolygonMode

#include "lvkrn.h"

L_LVKRN_API L_INT L_VecGetPolygonMode(pVector)

const pVECTORHANDLE pVector;

pointer to a vector handle

Gets the current polygon drawing mode.

Parameter

Description

pVector

Pointer to a vector handle.

Returns

The current polygon drawing mode. Possible values are:

Value

Meaning

VECTOR_POLYGON_POINT

Draw only the edge points on polygons and lines.

VECTOR_POLYGON_LINE

Draw as a wire-frame.

VECTOR_POLYGON_FILL

Draw solid polygons.

VECTOR_POLYGON_FILL_RASTER_ALWAYS

Draw solid polygons and always draw raster objects.

Comments

This function is not supported in the GDI engine.

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_VecSetPolygonMode

Example

This example will show the current polygon drawing mode in a message box.

L_INT VecGetPolygonModeExample(pVECTORHANDLE pVector) 
{ 
   L_INT nMode;   /* Current polygon mode */ 
   nMode = L_VecGetPolygonMode( pVector ); 
   switch( nMode ) 
   { 
      case VECTOR_POLYGON_POINT: 
      MessageBox( NULL, TEXT("Point"), TEXT("Polygon Mode"), 0 ); 
      break; 
      case VECTOR_POLYGON_LINE : 
      MessageBox( NULL, TEXT("Line"), TEXT("Polygon Mode"), 0 ); 
      break; 
      case VECTOR_POLYGON_FILL : 
      MessageBox( NULL, TEXT("Fill"), TEXT("Polygon Mode"), 0 ); 
      break; 
      case VECTOR_POLYGON_FILL_RASTER_ALWAYS : 
      MessageBox( NULL, TEXT("Fill"), TEXT("Polygon Mode with Raster Always"), 0 ); 
      break; 
   } 
   return SUCCESS; 
} 

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Vector C API Help