ApplicationSettings GetRasterExportResolution 方法 (Visio)ApplicationSettings.GetRasterExportResolution method (Visio)

會傳回 [光柵匯出解析度] 設定。Returns the raster export resolution settings.

語法Syntax

運算式GetRasterExportResolution(pResolutionpWidthpHeightpResolutionUnits)expression.GetRasterExportResolution (pResolution, pWidth, pHeight, pResolutionUnits)

_運算式_會傳回**ApplicationSettings** 物件的運算式。expression An expression that returns an ApplicationSettings object.

參數Parameters

名稱Name 必要/選用Required/Optional 資料類型Data type 描述Description
pResolutionpResolution 必要Required VisRasterExportResolutionVisRasterExportResolution 輸出參數。Out parameter. 點陣匯出的解析度。The raster export resolution. 請參閱 「 備註 」 可能的值。See Remarks for possible values.
pWidthpWidth 必要Required DoubleDouble 輸出參數。Out parameter. 點陣匯出的解析度寬度。The raster export resolution width.
pHeightpHeight 必要Required DoubleDouble 輸出參數。Out parameter. 點陣匯出的解析度高度。The raster export resolution height.
pResolutionUnitspResolutionUnits 必要Required VisRasterExportResolutionUnitsVisRasterExportResolutionUnits 輸出參數。Out parameter. 在指定解析度時使用的單位。The units used to specify resolution. 如需可能的值,請參閱<備註>。See Remarks for possible values.

傳回值Return value

Nothing

註解Remarks

_PResolution_參數必須是下列其中一個VisRasterExportResolution常數。The pResolution parameter must be one of the following VisRasterExportResolution constants.

常數Constant Value 描述Description
visRasterUseScreenResolutionvisRasterUseScreenResolution 0 使用螢幕解析度。Use screen resolution.
visRasterUsePrinterResolutionvisRasterUsePrinterResolution 一級1 使用印表機解析度。Use printer resolution.
visRasterUseSourceResolutionvisRasterUseSourceResolution 12 使用來源解析度。Use source resolution.
visRasterUseCustomResolutionvisRasterUseCustomResolution 3 使用自訂解析度。Use custom resolution.

如果 pResolutionvisRasterUseCustomResolution 以外的常數,GetRasterExportResolution 傳回的其他所有參數都將是 Null。If pResolution is a constant other than visRasterUseCustomResolution, GetRasterExportResolution returns null for all other parameters. 如果_pResolution_是visRasterUseCustomResolution, GetRasterExportResolution會傳回所有參數的非 null 值。If pResolution is visRasterUseCustomResolution, GetRasterExportResolution returns non-null values for all parameters.

_PResolutionUnits_參數必須是下列其中一個VisRasterExportResolutionUnits常數。The pResolutionUnits parameter must be one of the following VisRasterExportResolutionUnits constants.

常數Constant Value 描述Description
visRasterPixelsPerInchvisRasterPixelsPerInch 0 每英吋像素數目。Pixels per inch.
visRasterPixelsPerCmvisRasterPixelsPerCm 一級1 每公分像素數目。Pixels per centimeter.

支援和意見反應Support and feedback

有關於 Office VBA 或這份文件的問題或意見反應嗎?Have questions or feedback about Office VBA or this documentation? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.