How to set the picture symbol vectorization settings for vector exports


SummaryThe IExportVectorOptionsEx interface allows the developer to choose whether bitmap marker symbols and bitmap fills are rasterized during output or vectorized.

Development licensing Deployment licensing
ArcView ArcView
ArcEditor ArcEditor
ArcInfo ArcInfo
Engine Developer Kit Engine Runtime

Additional Requirements
  • The code in this article requires that your project include references to the Output and Display assemblies.

Setting the picture symbol vectorization settings for vector exports

To access these settings, use the IExportVectorOptionsEx interface. IExportVectorOptionsEx can be cast onto an IExport object to set the ExportPictureSymbolOptions property. The following shows the three possible values:
 
Constant
Value
Description
esriPSORasterize
0
Rasterize layers with picture symbols (the default).
esriPSORasterizeIfRasterData
1
Rasterize layers with picture symbols only if the symbols have raster data.
esriPSOVectorize
2
Vectorize layers with picture symbols.
 
See the following code example:
 

[C#]
if (docExport is IExportVector)
{
// Assign the IExportVectorOptionsEx property to control the rendering of picture marker symbols.
docExportVectorOptionsEx = docExport as IExportVectorOptionsEx;
docExportVectorOptionsEx.ExportPictureSymbolOptions = esriPictureSymbolOptions.esriPSOVectorize;
}

[VB.NET]
If TypeOf docExport Is IExportVector Then
' Assign the IExportVectorOptionsEx property to control the rendering of picture marker symbols.
docExportVectorOptionsEx = docExport
docExportVectorOptionsEx.ExportPictureSymbolOptions = esriPictureSymbolOptions.esriPSOVectorize
End If