L_VecGetPolygonMode

Summary

Gets the current polygon drawing mode.

Syntax

#include "ltvkrn.h"

L_LVKRN_API L_INT L_VecGetPolygonMode(pVector)

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

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