L_VecGetPolygonMode

#include "ltvkrn.h"

L_LTVKRN_API L_INT L_VecGetPolygonMode(pVector)

Gets the current polygon drawing mode.

Parameters

const pVECTORHANDLE 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

See Also

Functions

Example

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

L_LTVKRNTEX_API 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 21.0.2021.4.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C API Help