GetRasterExportResolution Method

Office 2010

Returns the raster export resolution settings.

Version Added: Visio 2010

expression .GetRasterExportResolution(pResolution, pWidth, pHeight, pResolutionUnits)

expression An expression that returns an ApplicationSettings object.

Parameters

Name

Required/Optional

Data Type

Description

pResolution

Required

VisRasterExportResolution

Out parameter. The raster export resolution. See Remarks for possible values.

pWidth

Required

Double

Out parameter. The raster export resolution width.

pHeight

Required

Double

Out parameter. The raster export resolution height.

pResolutionUnits

Required

VisRasterExportResolutionUnits

Out parameter. The units used to specify resolution. See Remarks for possible values.

Return Value

Nothing

The pResolution parameter must be one of the following VisRasterExportResolution constants.

Constant

Value

Description

visRasterUseScreenResolution

0

Use screen resolution.

visRasterUsePrinterResolution

1

Use printer resolution.

visRasterUseSourceResolution

2

Use source resolution.

visRasterUseCustomResolution

3

Use custom resolution.

If pResolution is a constant other than visRasterUseCustomResolution, GetRasterExportResolution returns null for all other parameters. If pResolution is visRasterUseCustomResolution, GetRasterExportResolution returns non-null values for all parameters.

The pResolutionUnits parameter must be one of the following VisRasterExportResolutionUnits constants.

Constant

Value

Description

visRasterPixelsPerInch

0

Pixels per inch.

visRasterPixelsPerCm

1

Pixels per centimeter.

Show:
© 2015 Microsoft