DpiHelper.LogicalToDeviceUnits Method

Definition

Overloads

LogicalToDeviceUnits(Image, ImageScalingMode)

Converts (if necessary) the image by scaling it to device units. When displayed on the device, the scaled image will have same size as the original image would have when displayed at 96dpi.

LogicalToDeviceUnits(ImageList, ImageScalingMode)

Converts (if necessary) the imagelist by scaling it to device units. When displayed on the device, the scaled imagelist will have same size as the original imagelist would have when displayed at 96dpi.

LogicalToDeviceUnits(Bitmap, Color, ImageScalingMode)

Converts (if necessary) the image by scaling it to device units. When displayed on the device, the scaled image will have same size as the original image would have when displayed at 96dpi.

LogicalToDeviceUnits(Icon, ImageScalingMode)

Converts (if necessary) the icon by scaling it to device units. When displayed on the device, the scaled icon will have same size as the original icon would have when displayed at 96dpi.

LogicalToDeviceUnits(Image, Color, ImageScalingMode)

Converts (if necessary) the image by scaling it to device units. When displayed on the device, the scaled image will have same size as the original image would have when displayed at 96dpi.

LogicalToDeviceUnits(ImageList, Color, ImageScalingMode)

Converts (if necessary) the imagelist by scaling it to device units. When displayed on the device, the scaled imagelist will have same size as the original imagelist would have when displayed at 96dpi.

LogicalToDeviceUnits(Bitmap, Size, Color, ImageScalingMode)

Converts (if necessary) the image strip to device units, using NearestNeighbor interpolation.. When displayed on the device, the scaled image strip will have same size as the original image strip would have when displayed at 96dpi.

This should be used for converting imagelists bitmap strips instead of simply scaling the bitmap, because the resultant bitmap strip size may be different from just upscaling as bitmap N * Math.Round(width * dpiscale) != Math.Round(N * width * dpiscale) This may happen depending on the image width because dpiscale is a double not an int.

LogicalToDeviceUnits(Bitmap, Size, ImageScalingMode)

Converts (if necessary) the image strip to device units, using NearestNeighbor interpolation.. When displayed on the device, the scaled image strip will have same size as the original image strip would have when displayed at 96dpi.

This should be used for converting imagelists bitmap strips instead of simply scaling the bitmap, because the resultant bitmap strip size may be different from just upscaling as bitmap N * Math.Round(width * dpiscale) != Math.Round(N * width * dpiscale) This may happen depending on the image width because dpiscale is a double not an int.

LogicalToDeviceUnits(Bitmap, ImageScalingMode)

Converts (if necessary) the image by scaling it to device units. When displayed on the device, the scaled image will have same size as the original image would have when displayed at 96dpi.

LogicalToDeviceUnits(PointF)
Obsolete.

Extension method for System.Drawing.PointF that returns a new PointF with the input's coordinates converted from logical units to device units.

LogicalToDeviceUnits(Size)
Obsolete.

Extension method for Size that returns a new Size with the input's dimensions converted from logical units to device units.

LogicalToDeviceUnits(Rect)
Obsolete.

Extension method for Rect that returns a new Rect with the input's coordinates converted from logical units to device units.

LogicalToDeviceUnits(Point)
Obsolete.

Extension method for Point that returns a new Point with the input's coordinates converted from logical units to device units.

LogicalToDeviceUnits(SizeF)
Obsolete.

Extension method for System.Drawing.SizeF that returns a new SizeF with the input's coordinates converted from logical units to device units.

LogicalToDeviceUnits(Size)
Obsolete.

Extension method for System.Drawing.Size that returns a new Size with the input's coordinates converted from logical units to device units.

LogicalToDeviceUnits(RectangleF)
Obsolete.

Extension method for System.Drawing.RectangleF that returns a new RectangleF with the input's coordinates converted from logical units to device units.

LogicalToDeviceUnits(Rectangle)
Obsolete.

Extension method for System.Drawing.Rectangle that returns a new Rectangle with the input's coordinates converted from logical units to device units.

LogicalToDeviceUnits(Point)
Obsolete.

Extension method for System.Drawing.Point that returns a new Point with the input's coordinates converted from logical units to device units.

LogicalToDeviceUnits(Thickness)
Obsolete.

Extension method for Thickness that returns a new Thickness with the input's dimensions converted from logical units to device units.

LogicalToDeviceUnits(Image, ImageScalingMode)

Converts (if necessary) the image by scaling it to device units. When displayed on the device, the scaled image will have same size as the original image would have when displayed at 96dpi.

public static void LogicalToDeviceUnits (ref System.Drawing.Image image, Microsoft.VisualStudio.PlatformUI.ImageScalingMode scalingMode = Microsoft.VisualStudio.PlatformUI.ImageScalingMode.Default);
static member LogicalToDeviceUnits : Image * Microsoft.VisualStudio.PlatformUI.ImageScalingMode -> unit
Public Sub LogicalToDeviceUnits (ByRef image As Image, Optional scalingMode As ImageScalingMode = Microsoft.VisualStudio.PlatformUI.ImageScalingMode.Default)

Parameters

image
Image

The image to scale from logical units to device units

scalingMode
ImageScalingMode

The scaling mode to use when scaling the image. When the interpolation mode is Bilinear or Bicubic, a transparent color will be used for background and the image's magins will be interpolated with the background. As result, the returned image will use alpha blending.

Applies to

LogicalToDeviceUnits(ImageList, ImageScalingMode)

Converts (if necessary) the imagelist by scaling it to device units. When displayed on the device, the scaled imagelist will have same size as the original imagelist would have when displayed at 96dpi.

public static void LogicalToDeviceUnits (ref System.Windows.Forms.ImageList imageList, Microsoft.VisualStudio.PlatformUI.ImageScalingMode scalingMode = Microsoft.VisualStudio.PlatformUI.ImageScalingMode.Default);
static member LogicalToDeviceUnits : ImageList * Microsoft.VisualStudio.PlatformUI.ImageScalingMode -> unit
Public Sub LogicalToDeviceUnits (ByRef imageList As ImageList, Optional scalingMode As ImageScalingMode = Microsoft.VisualStudio.PlatformUI.ImageScalingMode.Default)

Parameters

imageList
ImageList

The imagelist to scale from logical units to device units

scalingMode
ImageScalingMode

The scaling mode to use when scaling the images in the imagelist

Applies to

LogicalToDeviceUnits(Bitmap, Color, ImageScalingMode)

Converts (if necessary) the image by scaling it to device units. When displayed on the device, the scaled image will have same size as the original image would have when displayed at 96dpi.

public static void LogicalToDeviceUnits (ref System.Drawing.Bitmap bitmapImage, System.Drawing.Color backgroundColor, Microsoft.VisualStudio.PlatformUI.ImageScalingMode scalingMode = Microsoft.VisualStudio.PlatformUI.ImageScalingMode.Default);
static member LogicalToDeviceUnits : Bitmap * System.Drawing.Color * Microsoft.VisualStudio.PlatformUI.ImageScalingMode -> unit
Public Sub LogicalToDeviceUnits (ByRef bitmapImage As Bitmap, backgroundColor As Color, Optional scalingMode As ImageScalingMode = Microsoft.VisualStudio.PlatformUI.ImageScalingMode.Default)

Parameters

bitmapImage
Bitmap

The bitmap image to scale from logical units to device units

backgroundColor
Color

A Color value to be used for the image background. When the interpolation mode is Bilinear or Bicubic, the image's margins are interpolated with the background.

scalingMode
ImageScalingMode

The scaling mode to use when scaling the image

Applies to

LogicalToDeviceUnits(Icon, ImageScalingMode)

Converts (if necessary) the icon by scaling it to device units. When displayed on the device, the scaled icon will have same size as the original icon would have when displayed at 96dpi.

public static void LogicalToDeviceUnits (ref System.Drawing.Icon icon, Microsoft.VisualStudio.PlatformUI.ImageScalingMode scalingMode = Microsoft.VisualStudio.PlatformUI.ImageScalingMode.Default);
static member LogicalToDeviceUnits : Icon * Microsoft.VisualStudio.PlatformUI.ImageScalingMode -> unit
Public Sub LogicalToDeviceUnits (ByRef icon As Icon, Optional scalingMode As ImageScalingMode = Microsoft.VisualStudio.PlatformUI.ImageScalingMode.Default)

Parameters

icon
Icon

The icon to scale from logical units to device units

scalingMode
ImageScalingMode

The scaling mode to use when scaling the icon.

Applies to

LogicalToDeviceUnits(Image, Color, ImageScalingMode)

Converts (if necessary) the image by scaling it to device units. When displayed on the device, the scaled image will have same size as the original image would have when displayed at 96dpi.

public static void LogicalToDeviceUnits (ref System.Drawing.Image image, System.Drawing.Color backgroundColor, Microsoft.VisualStudio.PlatformUI.ImageScalingMode scalingMode = Microsoft.VisualStudio.PlatformUI.ImageScalingMode.Default);
static member LogicalToDeviceUnits : Image * System.Drawing.Color * Microsoft.VisualStudio.PlatformUI.ImageScalingMode -> unit
Public Sub LogicalToDeviceUnits (ByRef image As Image, backgroundColor As Color, Optional scalingMode As ImageScalingMode = Microsoft.VisualStudio.PlatformUI.ImageScalingMode.Default)

Parameters

image
Image

The image to scale from logical units to device units

backgroundColor
Color

A Color value to be used for the image background. When the interpolation mode is Bilinear or Bicubic, the image's margins are interpolated with the background.

scalingMode
ImageScalingMode

The scaling mode to use when scaling the image

Applies to

LogicalToDeviceUnits(ImageList, Color, ImageScalingMode)

Converts (if necessary) the imagelist by scaling it to device units. When displayed on the device, the scaled imagelist will have same size as the original imagelist would have when displayed at 96dpi.

public static void LogicalToDeviceUnits (ref System.Windows.Forms.ImageList imageList, System.Drawing.Color backgroundColor, Microsoft.VisualStudio.PlatformUI.ImageScalingMode scalingMode = Microsoft.VisualStudio.PlatformUI.ImageScalingMode.Default);
static member LogicalToDeviceUnits : ImageList * System.Drawing.Color * Microsoft.VisualStudio.PlatformUI.ImageScalingMode -> unit
Public Sub LogicalToDeviceUnits (ByRef imageList As ImageList, backgroundColor As Color, Optional scalingMode As ImageScalingMode = Microsoft.VisualStudio.PlatformUI.ImageScalingMode.Default)

Parameters

imageList
ImageList

The imagelist to scale from logical units to device units

backgroundColor
Color

A Color value to be used for the image background. When the interpolation mode is Bilinear or Bicubic, the image's margins are interpolated with the background.

scalingMode
ImageScalingMode

The scaling mode to use when scaling the images in the imagelist

Applies to

LogicalToDeviceUnits(Bitmap, Size, Color, ImageScalingMode)

Converts (if necessary) the image strip to device units, using NearestNeighbor interpolation.. When displayed on the device, the scaled image strip will have same size as the original image strip would have when displayed at 96dpi.

This should be used for converting imagelists bitmap strips instead of simply scaling the bitmap, because the resultant bitmap strip size may be different from just upscaling as bitmap N * Math.Round(width * dpiscale) != Math.Round(N * width * dpiscale) This may happen depending on the image width because dpiscale is a double not an int.

public static void LogicalToDeviceUnits (ref System.Drawing.Bitmap imageStrip, System.Drawing.Size logicalImageSize, System.Drawing.Color backgroundColor, Microsoft.VisualStudio.PlatformUI.ImageScalingMode scalingMode = Microsoft.VisualStudio.PlatformUI.ImageScalingMode.Default);
static member LogicalToDeviceUnits : Bitmap * System.Drawing.Size * System.Drawing.Color * Microsoft.VisualStudio.PlatformUI.ImageScalingMode -> unit
Public Sub LogicalToDeviceUnits (ByRef imageStrip As Bitmap, logicalImageSize As Size, backgroundColor As Color, Optional scalingMode As ImageScalingMode = Microsoft.VisualStudio.PlatformUI.ImageScalingMode.Default)

Parameters

imageStrip
Bitmap

The image strip to scale from logical units to device units

logicalImageSize
Size

The size in logical unit of each image in the strip

backgroundColor
Color

A Color value to be used for the image background. When the interpolation mode is Bilinear or Bicubic, the image's margins are interpolated with the background.

scalingMode
ImageScalingMode

The scaling mode to use when scaling the images in the strip

Applies to

LogicalToDeviceUnits(Bitmap, Size, ImageScalingMode)

Converts (if necessary) the image strip to device units, using NearestNeighbor interpolation.. When displayed on the device, the scaled image strip will have same size as the original image strip would have when displayed at 96dpi.

This should be used for converting imagelists bitmap strips instead of simply scaling the bitmap, because the resultant bitmap strip size may be different from just upscaling as bitmap N * Math.Round(width * dpiscale) != Math.Round(N * width * dpiscale) This may happen depending on the image width because dpiscale is a double not an int.

public static void LogicalToDeviceUnits (ref System.Drawing.Bitmap imageStrip, System.Drawing.Size logicalImageSize, Microsoft.VisualStudio.PlatformUI.ImageScalingMode scalingMode = Microsoft.VisualStudio.PlatformUI.ImageScalingMode.Default);
static member LogicalToDeviceUnits : Bitmap * System.Drawing.Size * Microsoft.VisualStudio.PlatformUI.ImageScalingMode -> unit
Public Sub LogicalToDeviceUnits (ByRef imageStrip As Bitmap, logicalImageSize As Size, Optional scalingMode As ImageScalingMode = Microsoft.VisualStudio.PlatformUI.ImageScalingMode.Default)

Parameters

imageStrip
Bitmap

The image strip to scale from logical units to device units

logicalImageSize
Size

The size in logical unit of each image in the strip

scalingMode
ImageScalingMode

The scaling mode to use when scaling the images in the strip

Applies to

LogicalToDeviceUnits(Bitmap, ImageScalingMode)

Converts (if necessary) the image by scaling it to device units. When displayed on the device, the scaled image will have same size as the original image would have when displayed at 96dpi.

public static void LogicalToDeviceUnits (ref System.Drawing.Bitmap bitmapImage, Microsoft.VisualStudio.PlatformUI.ImageScalingMode scalingMode = Microsoft.VisualStudio.PlatformUI.ImageScalingMode.Default);
static member LogicalToDeviceUnits : Bitmap * Microsoft.VisualStudio.PlatformUI.ImageScalingMode -> unit
Public Sub LogicalToDeviceUnits (ByRef bitmapImage As Bitmap, Optional scalingMode As ImageScalingMode = Microsoft.VisualStudio.PlatformUI.ImageScalingMode.Default)

Parameters

bitmapImage
Bitmap

The bitmap image to scale from logical units to device units

scalingMode
ImageScalingMode

The scaling mode to use when scaling the image. When the interpolation mode is Bilinear or Bicubic, a transparent color will be used for background and the image's magins will be interpolated with the background. As result, the returned image will use alpha blending.

Applies to

LogicalToDeviceUnits(PointF)

Caution

Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.

Extension method for System.Drawing.PointF that returns a new PointF with the input's coordinates converted from logical units to device units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Drawing::PointF LogicalToDeviceUnits(System::Drawing::PointF logicalPoint);
public static System.Drawing.PointF LogicalToDeviceUnits (this System.Drawing.PointF logicalPoint);
[System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")]
public static System.Drawing.PointF LogicalToDeviceUnits (this System.Drawing.PointF logicalPoint);
static member LogicalToDeviceUnits : System.Drawing.PointF -> System.Drawing.PointF
[<System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")>]
static member LogicalToDeviceUnits : System.Drawing.PointF -> System.Drawing.PointF
<Extension()>
Public Function LogicalToDeviceUnits (logicalPoint As PointF) As PointF

Parameters

logicalPoint
PointF

PointF in logical units

Returns

PointF in device coordinates

Attributes

Applies to

LogicalToDeviceUnits(Size)

Caution

Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.

Extension method for Size that returns a new Size with the input's dimensions converted from logical units to device units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Windows::Size LogicalToDeviceUnits(System::Windows::Size logicalSize);
public static System.Windows.Size LogicalToDeviceUnits (this System.Windows.Size logicalSize);
[System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")]
public static System.Windows.Size LogicalToDeviceUnits (this System.Windows.Size logicalSize);
static member LogicalToDeviceUnits : System.Windows.Size -> System.Windows.Size
[<System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")>]
static member LogicalToDeviceUnits : System.Windows.Size -> System.Windows.Size
<Extension()>
Public Function LogicalToDeviceUnits (logicalSize As Size) As Size

Parameters

logicalSize
Size

Size in logical units

Returns

Size in device units

Attributes

Applies to

LogicalToDeviceUnits(Rect)

Caution

Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.

Extension method for Rect that returns a new Rect with the input's coordinates converted from logical units to device units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Windows::Rect LogicalToDeviceUnits(System::Windows::Rect logicalRect);
public static System.Windows.Rect LogicalToDeviceUnits (this System.Windows.Rect logicalRect);
[System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")]
public static System.Windows.Rect LogicalToDeviceUnits (this System.Windows.Rect logicalRect);
static member LogicalToDeviceUnits : System.Windows.Rect -> System.Windows.Rect
[<System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")>]
static member LogicalToDeviceUnits : System.Windows.Rect -> System.Windows.Rect
<Extension()>
Public Function LogicalToDeviceUnits (logicalRect As Rect) As Rect

Parameters

logicalRect
Rect

Rect in logical coordinates

Returns

Rect in device coordinates

Attributes

Applies to

LogicalToDeviceUnits(Point)

Caution

Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.

Extension method for Point that returns a new Point with the input's coordinates converted from logical units to device units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Windows::Point LogicalToDeviceUnits(System::Windows::Point logicalPoint);
public static System.Windows.Point LogicalToDeviceUnits (this System.Windows.Point logicalPoint);
[System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")]
public static System.Windows.Point LogicalToDeviceUnits (this System.Windows.Point logicalPoint);
static member LogicalToDeviceUnits : System.Windows.Point -> System.Windows.Point
[<System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")>]
static member LogicalToDeviceUnits : System.Windows.Point -> System.Windows.Point
<Extension()>
Public Function LogicalToDeviceUnits (logicalPoint As Point) As Point

Parameters

logicalPoint
Point

Point in logical units

Returns

Point in device coordinates

Attributes

Applies to

LogicalToDeviceUnits(SizeF)

Caution

Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.

Extension method for System.Drawing.SizeF that returns a new SizeF with the input's coordinates converted from logical units to device units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Drawing::SizeF LogicalToDeviceUnits(System::Drawing::SizeF logicalSize);
public static System.Drawing.SizeF LogicalToDeviceUnits (this System.Drawing.SizeF logicalSize);
[System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")]
public static System.Drawing.SizeF LogicalToDeviceUnits (this System.Drawing.SizeF logicalSize);
static member LogicalToDeviceUnits : System.Drawing.SizeF -> System.Drawing.SizeF
[<System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")>]
static member LogicalToDeviceUnits : System.Drawing.SizeF -> System.Drawing.SizeF
<Extension()>
Public Function LogicalToDeviceUnits (logicalSize As SizeF) As SizeF

Parameters

logicalSize
SizeF

The logical size.

Returns

SizeF in device coordinates

Attributes

Applies to

LogicalToDeviceUnits(Size)

Caution

Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.

Extension method for System.Drawing.Size that returns a new Size with the input's coordinates converted from logical units to device units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Drawing::Size LogicalToDeviceUnits(System::Drawing::Size logicalSize);
public static System.Drawing.Size LogicalToDeviceUnits (this System.Drawing.Size logicalSize);
[System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")]
public static System.Drawing.Size LogicalToDeviceUnits (this System.Drawing.Size logicalSize);
static member LogicalToDeviceUnits : System.Drawing.Size -> System.Drawing.Size
[<System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")>]
static member LogicalToDeviceUnits : System.Drawing.Size -> System.Drawing.Size
<Extension()>
Public Function LogicalToDeviceUnits (logicalSize As Size) As Size

Parameters

logicalSize
Size

The logical size.

Returns

Size in device coordinates

Attributes

Applies to

LogicalToDeviceUnits(RectangleF)

Caution

Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.

Extension method for System.Drawing.RectangleF that returns a new RectangleF with the input's coordinates converted from logical units to device units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Drawing::RectangleF LogicalToDeviceUnits(System::Drawing::RectangleF logicalRect);
public static System.Drawing.RectangleF LogicalToDeviceUnits (this System.Drawing.RectangleF logicalRect);
[System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")]
public static System.Drawing.RectangleF LogicalToDeviceUnits (this System.Drawing.RectangleF logicalRect);
static member LogicalToDeviceUnits : System.Drawing.RectangleF -> System.Drawing.RectangleF
[<System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")>]
static member LogicalToDeviceUnits : System.Drawing.RectangleF -> System.Drawing.RectangleF
<Extension()>
Public Function LogicalToDeviceUnits (logicalRect As RectangleF) As RectangleF

Parameters

logicalRect
RectangleF

The rectangle.

Returns

RectangleF in device coordinates

Attributes

Applies to

LogicalToDeviceUnits(Rectangle)

Caution

Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.

Extension method for System.Drawing.Rectangle that returns a new Rectangle with the input's coordinates converted from logical units to device units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Drawing::Rectangle LogicalToDeviceUnits(System::Drawing::Rectangle logicalRect);
public static System.Drawing.Rectangle LogicalToDeviceUnits (this System.Drawing.Rectangle logicalRect);
[System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")]
public static System.Drawing.Rectangle LogicalToDeviceUnits (this System.Drawing.Rectangle logicalRect);
static member LogicalToDeviceUnits : System.Drawing.Rectangle -> System.Drawing.Rectangle
[<System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")>]
static member LogicalToDeviceUnits : System.Drawing.Rectangle -> System.Drawing.Rectangle
<Extension()>
Public Function LogicalToDeviceUnits (logicalRect As Rectangle) As Rectangle

Parameters

logicalRect
Rectangle

The rectangle.

Returns

Rectangle in device coordinates

Attributes

Applies to

LogicalToDeviceUnits(Point)

Caution

Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.

Extension method for System.Drawing.Point that returns a new Point with the input's coordinates converted from logical units to device units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Drawing::Point LogicalToDeviceUnits(System::Drawing::Point logicalPoint);
public static System.Drawing.Point LogicalToDeviceUnits (this System.Drawing.Point logicalPoint);
[System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")]
public static System.Drawing.Point LogicalToDeviceUnits (this System.Drawing.Point logicalPoint);
static member LogicalToDeviceUnits : System.Drawing.Point -> System.Drawing.Point
[<System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")>]
static member LogicalToDeviceUnits : System.Drawing.Point -> System.Drawing.Point
<Extension()>
Public Function LogicalToDeviceUnits (logicalPoint As Point) As Point

Parameters

logicalPoint
Point

Point in logical units

Returns

Point in device coordinates

Attributes

Applies to

LogicalToDeviceUnits(Thickness)

Caution

Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.

Extension method for Thickness that returns a new Thickness with the input's dimensions converted from logical units to device units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Windows::Thickness LogicalToDeviceUnits(System::Windows::Thickness logicalThickness);
public static System.Windows.Thickness LogicalToDeviceUnits (this System.Windows.Thickness logicalThickness);
[System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")]
public static System.Windows.Thickness LogicalToDeviceUnits (this System.Windows.Thickness logicalThickness);
static member LogicalToDeviceUnits : System.Windows.Thickness -> System.Windows.Thickness
[<System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")>]
static member LogicalToDeviceUnits : System.Windows.Thickness -> System.Windows.Thickness
<Extension()>
Public Function LogicalToDeviceUnits (logicalThickness As Thickness) As Thickness

Parameters

logicalThickness
Thickness

Thickness in logical units

Returns

Thickness in device units

Attributes

Applies to