Partager via


DpiHelper.GetHelper(Int32) Method

Definition

Returns a DpiHelper that can scale images created for the specified DPI zoom factor. E.g. If you have images that were designed for multiple resolutions (e.g. one image for 96dpi, other for 192dpi, etc), and need to use the 192dpi image to scale it to the actual display DPI, you'll need to call GetHelper(200) to get a DpiHelper that will scale correctly that image.

public:
 static Microsoft::VisualStudio::Utilities::Dpi::DpiHelper ^ GetHelper(int zoomPercent);
public:
 static Microsoft::VisualStudio::Utilities::Dpi::DpiHelper ^ GetHelper(int zoomPercent);
 static Microsoft::VisualStudio::Utilities::Dpi::DpiHelper GetHelper(int zoomPercent);
public static Microsoft.VisualStudio.Utilities.Dpi.DpiHelper GetHelper (int zoomPercent);
static member GetHelper : int -> Microsoft.VisualStudio.Utilities.Dpi.DpiHelper
Public Shared Function GetHelper (zoomPercent As Integer) As DpiHelper

Parameters

zoomPercent
Int32

Zoom factor for original images

Returns

The scaling helper

Applies to