ApplicationSettings.RasterExportBackgroundColor property (Visio)
Determines the background color 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, JPG, PNG, or TIFF file. Read/write.
Syntax
expression.RasterExportBackgroundColor
expression An expression that returns an ApplicationSettings object.
Return value
OLE_COLOR
Remarks
The value of the RasterExportBackgroundColor property must be a valid OLE_COLOR color. The default setting for a given session of Microsoft Visio is RGB(255, 255,255), which means that Visio applies a white background color on export.
For any session of Visio, when the RasterExportBackgroundColor 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 RasterExportBackgroundColor property corresponds to the background color selected in the BMP Output Options, GIF 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), Graphics Interchange Format (*.gif), JPEG File Interchange Format (*.jpg), Portable Network Graphics (*.png), or Tag Image File Format (*.tif), and then click Save.)
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.