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

ApplicationSettings.RasterExportColorFormat Property (Visio)

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

Determines the color format 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, JPG, PNG, or TIFF file. Read/write.

Syntax

expression . RasterExportColorFormat

expression An expression that returns an ApplicationSettings object.

Return Value

VisRasterExportColorFormat

Remarks

The value of the RasterExportColorFormat property must be one of the following VisRasterExportColorFormat constants.

ConstantValueDescriptionApplicable File Formats
visRasterBiLevel0Bi-level color formatBMP, PNG, TIFF
visRaster16Color116-color formatBMP, PNG, TIFF
visRaster256Color2256-color formatBMP, PNG, TIFF
visRaster24Bit324-bit color format; the default for PNG, TIFF, and BMPBMP, PNG, TIFF
visRasterRGB4RGB color format; the default for JPGJPG
visRasterYCC5YCC color formatJPG
visRasterGrayScale6Grayscale color formatJPG
visRasterCMYK7CMYK color formatJPG
visRaster16ColorGrayScale816-color grayscale color formatTIFF
visRaster256ColorGrayScale9256-color grayscale color formatTIFF
visRaster16Bit1016-bit color formatBMP

For any given session of Microsoft Visio, when the RasterExportColorFormat 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 RasterExportColorFormat property corresponds to the Color format setting in the BMP Output Options, JPG 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), JPEG File Interchange Format (*.jpg), Portable Network Graphics (*.png), or Tag Image File Format (*.tif), and then click Save.)

© 2017 Microsoft