Table of contents
Collapse the table of content
Expand the table of content

ApplicationSettings.RasterExportColorReduction Property (Visio)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Determines the color reduction that is applied to the exported image when you call the Export method of the Master , Page , Selection , or Shape object to export the specified object to a BMP, GIF, PNG, or TIFF file. Read/write.


expression . RasterExportColorReduction

expression An expression that returns an ApplicationSettings object.

Return Value



When you apply color reduction, you reduce the number of colors present in an image in order to make the resulting file smaller in size.

The value of the RasterExportColorReduction property can be one of the following VisRasterExportColorReduction constants.

visRasterAdaptive0Adaptive color reduction; the default for GIF files
visRasterDiffusion1Diffusion color reduction
visRasterHalftone2Halftone color reduction

For BMP, PNG, and TIFF files, the default is no color reduction.

For any given session of Microsoft Visio, when the RasterExportColorReduction property value is set, either programmatically or in the user interface, the setting then becomes the new default for the remainder of the session. However, it is not persisted to the next session.

The setting of the RasterExportColorReduction property corresponds to the Color reduction setting in the BMP Output Options, GIF Output Options, PNG Output Options, or TIFF Output Options dialog box. (Click the File tab, click Save As, in the Save as type list, select Windows Bitmap (*.bmp; *.dib), Graphics Interchange Format (*.gif), Portable Network Graphics (*.png), or Tag Image File Format (*.tif), and then click Save.)

© 2018 Microsoft