DpiHelper.LogicalToDeviceUnits DpiHelper.LogicalToDeviceUnits DpiHelper.LogicalToDeviceUnits DpiHelper.LogicalToDeviceUnits Method

Definition

Overloads

LogicalToDeviceUnits(Image, ImageScalingMode) LogicalToDeviceUnits(Image, ImageScalingMode) LogicalToDeviceUnits(Image, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

LogicalToDeviceUnits(ImageList, ImageScalingMode) LogicalToDeviceUnits(ImageList, ImageScalingMode) LogicalToDeviceUnits(ImageList, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

LogicalToDeviceUnits(Bitmap, Color, ImageScalingMode) LogicalToDeviceUnits(Bitmap, Color, ImageScalingMode) LogicalToDeviceUnits(Bitmap, Color, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

LogicalToDeviceUnits(Icon, ImageScalingMode) LogicalToDeviceUnits(Icon, ImageScalingMode) 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 image would have when displayed at 96dpi.

LogicalToDeviceUnits(Image, Color, ImageScalingMode) LogicalToDeviceUnits(Image, Color, ImageScalingMode) LogicalToDeviceUnits(Image, Color, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

LogicalToDeviceUnits(ImageList, Color, ImageScalingMode) LogicalToDeviceUnits(ImageList, Color, ImageScalingMode) LogicalToDeviceUnits(ImageList, Color, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

LogicalToDeviceUnits(Bitmap, Size, Color, ImageScalingMode) LogicalToDeviceUnits(Bitmap, Size, Color, ImageScalingMode) LogicalToDeviceUnits(Bitmap, Size, Color, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

LogicalToDeviceUnits(Bitmap, Size, ImageScalingMode) LogicalToDeviceUnits(Bitmap, Size, ImageScalingMode) LogicalToDeviceUnits(Bitmap, Size, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

LogicalToDeviceUnits(Bitmap, ImageScalingMode) LogicalToDeviceUnits(Bitmap, ImageScalingMode) LogicalToDeviceUnits(Bitmap, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

LogicalToDeviceUnits(PointF) LogicalToDeviceUnits(PointF) LogicalToDeviceUnits(PointF) LogicalToDeviceUnits(PointF)

Converts the specified coordinates from logical units to device units.

LogicalToDeviceUnits(Size) LogicalToDeviceUnits(Size) LogicalToDeviceUnits(Size) LogicalToDeviceUnits(Size)

Microsoft internal use only.

LogicalToDeviceUnits(Rect) LogicalToDeviceUnits(Rect) LogicalToDeviceUnits(Rect) LogicalToDeviceUnits(Rect)

Microsoft internal use only.

LogicalToDeviceUnits(Point) LogicalToDeviceUnits(Point) LogicalToDeviceUnits(Point) LogicalToDeviceUnits(Point)

Converts the specified coordinates from logical units to device units.

LogicalToDeviceUnits(SizeF) LogicalToDeviceUnits(SizeF) LogicalToDeviceUnits(SizeF) LogicalToDeviceUnits(SizeF)

Converts the specified coordinates from logical units to device units.

LogicalToDeviceUnits(Size) LogicalToDeviceUnits(Size) LogicalToDeviceUnits(Size) LogicalToDeviceUnits(Size)

Converts the specified coordinates from logical units to device units.

LogicalToDeviceUnits(RectangleF) LogicalToDeviceUnits(RectangleF) LogicalToDeviceUnits(RectangleF) LogicalToDeviceUnits(RectangleF)

Converts the specified coordinates from logical units to device units.

LogicalToDeviceUnits(Rectangle) LogicalToDeviceUnits(Rectangle) LogicalToDeviceUnits(Rectangle) LogicalToDeviceUnits(Rectangle)

Converts the specified coordinates from logical units to device units.

LogicalToDeviceUnits(Point) LogicalToDeviceUnits(Point) LogicalToDeviceUnits(Point) LogicalToDeviceUnits(Point)

Converts the specified coordinates from logical units to device units.

LogicalToDeviceUnits(Thickness) LogicalToDeviceUnits(Thickness) LogicalToDeviceUnits(Thickness) LogicalToDeviceUnits(Thickness)

LogicalToDeviceUnits(Image, ImageScalingMode) LogicalToDeviceUnits(Image, ImageScalingMode) LogicalToDeviceUnits(Image, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

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

Parameters

image
Image Image Image Image

The image.

LogicalToDeviceUnits(ImageList, ImageScalingMode) LogicalToDeviceUnits(ImageList, ImageScalingMode) LogicalToDeviceUnits(ImageList, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

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

Parameters

imageList
ImageList ImageList ImageList ImageList

The image list.

LogicalToDeviceUnits(Bitmap, Color, ImageScalingMode) LogicalToDeviceUnits(Bitmap, Color, ImageScalingMode) LogicalToDeviceUnits(Bitmap, Color, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

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 :  * 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 Bitmap Bitmap Bitmap

The bitmap.

backgroundColor
Color Color Color Color

The background color.

LogicalToDeviceUnits(Icon, ImageScalingMode) LogicalToDeviceUnits(Icon, ImageScalingMode) 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 image 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 :  * Microsoft.VisualStudio.PlatformUI.ImageScalingMode -> unit
Public Sub LogicalToDeviceUnits (ByRef icon As Icon, Optional scalingMode As ImageScalingMode = Microsoft.VisualStudio.PlatformUI.ImageScalingMode.Default)

Parameters

icon
Icon Icon Icon Icon

The bitmap icon to scale from logical units to device units.

scalingMode
ImageScalingMode ImageScalingMode ImageScalingMode ImageScalingMode

The scaling mode to use when scaling the icon.

LogicalToDeviceUnits(Image, Color, ImageScalingMode) LogicalToDeviceUnits(Image, Color, ImageScalingMode) LogicalToDeviceUnits(Image, Color, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

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 :  * 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 Image Image Image

The image.

backgroundColor
Color Color Color Color

The background color.

LogicalToDeviceUnits(ImageList, Color, ImageScalingMode) LogicalToDeviceUnits(ImageList, Color, ImageScalingMode) LogicalToDeviceUnits(ImageList, Color, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

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 :  * 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 ImageList ImageList ImageList

The image list.

backgroundColor
Color Color Color Color

The background color.

LogicalToDeviceUnits(Bitmap, Size, Color, ImageScalingMode) LogicalToDeviceUnits(Bitmap, Size, Color, ImageScalingMode) LogicalToDeviceUnits(Bitmap, Size, Color, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

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 :  * 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 Bitmap Bitmap Bitmap

The image strip.

logicalImageSize
Size Size Size Size

The logical image size.

backgroundColor
Color Color Color Color

The background color.

LogicalToDeviceUnits(Bitmap, Size, ImageScalingMode) LogicalToDeviceUnits(Bitmap, Size, ImageScalingMode) LogicalToDeviceUnits(Bitmap, Size, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

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 :  * 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 Bitmap Bitmap Bitmap

The image strip.

logicalImageSize
Size Size Size Size

The logical image size.

LogicalToDeviceUnits(Bitmap, ImageScalingMode) LogicalToDeviceUnits(Bitmap, ImageScalingMode) LogicalToDeviceUnits(Bitmap, ImageScalingMode)

Converts the specified coordinates from logical units to device units.

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

Parameters

bitmapImage
Bitmap Bitmap Bitmap Bitmap

The bitmap.

LogicalToDeviceUnits(PointF) LogicalToDeviceUnits(PointF) LogicalToDeviceUnits(PointF) LogicalToDeviceUnits(PointF)

Converts the specified coordinates 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);
static member LogicalToDeviceUnits : System.Drawing.PointF -> System.Drawing.PointF
<Extension()>
Public Function LogicalToDeviceUnits (logicalPoint As PointF) As PointF

Parameters

logicalPoint
PointF PointF PointF PointF

A logical point.

Returns

The device units.

LogicalToDeviceUnits(Size) LogicalToDeviceUnits(Size) LogicalToDeviceUnits(Size) LogicalToDeviceUnits(Size)

Microsoft internal use only.

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);
static member LogicalToDeviceUnits : System.Windows.Size -> System.Windows.Size
<Extension()>
Public Function LogicalToDeviceUnits (logicalSize As Size) As Size

Parameters

logicalSize
Size Size Size Size

The size in logical units

Returns

The device units.

LogicalToDeviceUnits(Rect) LogicalToDeviceUnits(Rect) LogicalToDeviceUnits(Rect) LogicalToDeviceUnits(Rect)

Microsoft internal use only.

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);
static member LogicalToDeviceUnits : System.Windows.Rect -> System.Windows.Rect
<Extension()>
Public Function LogicalToDeviceUnits (logicalRect As Rect) As Rect

Parameters

logicalRect
Rect Rect Rect Rect

The rectangle in logical coordinates.

Returns

The device units.

LogicalToDeviceUnits(Point) LogicalToDeviceUnits(Point) LogicalToDeviceUnits(Point) LogicalToDeviceUnits(Point)

Converts the specified coordinates 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);
static member LogicalToDeviceUnits : System.Windows.Point -> System.Windows.Point
<Extension()>
Public Function LogicalToDeviceUnits (logicalPoint As Point) As Point

Parameters

logicalPoint
Point Point Point Point

The point in logical units.

Returns

The device units.

LogicalToDeviceUnits(SizeF) LogicalToDeviceUnits(SizeF) LogicalToDeviceUnits(SizeF) LogicalToDeviceUnits(SizeF)

Converts the specified coordinates 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);
static member LogicalToDeviceUnits : System.Drawing.SizeF -> System.Drawing.SizeF
<Extension()>
Public Function LogicalToDeviceUnits (logicalSize As SizeF) As SizeF

Parameters

logicalSize
SizeF SizeF SizeF SizeF

The logical size.

Returns

The device units.

LogicalToDeviceUnits(Size) LogicalToDeviceUnits(Size) LogicalToDeviceUnits(Size) LogicalToDeviceUnits(Size)

Converts the specified coordinates 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);
static member LogicalToDeviceUnits : System.Drawing.Size -> System.Drawing.Size
<Extension()>
Public Function LogicalToDeviceUnits (logicalSize As Size) As Size

Parameters

logicalSize
Size Size Size Size

The logical size.

Returns

The device units.

LogicalToDeviceUnits(RectangleF) LogicalToDeviceUnits(RectangleF) LogicalToDeviceUnits(RectangleF) LogicalToDeviceUnits(RectangleF)

Converts the specified coordinates 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);
static member LogicalToDeviceUnits : System.Drawing.RectangleF -> System.Drawing.RectangleF
<Extension()>
Public Function LogicalToDeviceUnits (logicalRect As RectangleF) As RectangleF

Parameters

logicalRect
RectangleF RectangleF RectangleF RectangleF

The rectangle.

Returns

LogicalToDeviceUnits(Rectangle) LogicalToDeviceUnits(Rectangle) LogicalToDeviceUnits(Rectangle) LogicalToDeviceUnits(Rectangle)

Converts the specified coordinates 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);
static member LogicalToDeviceUnits : System.Drawing.Rectangle -> System.Drawing.Rectangle
<Extension()>
Public Function LogicalToDeviceUnits (logicalRect As Rectangle) As Rectangle

Parameters

logicalRect
Rectangle Rectangle Rectangle Rectangle

The rectangle.

Returns

LogicalToDeviceUnits(Point) LogicalToDeviceUnits(Point) LogicalToDeviceUnits(Point) LogicalToDeviceUnits(Point)

Converts the specified coordinates 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);
static member LogicalToDeviceUnits : System.Drawing.Point -> System.Drawing.Point
<Extension()>
Public Function LogicalToDeviceUnits (logicalPoint As Point) As Point

Parameters

logicalPoint
Point Point Point Point

A logical point.

Returns

The device units.

LogicalToDeviceUnits(Thickness) LogicalToDeviceUnits(Thickness) LogicalToDeviceUnits(Thickness) LogicalToDeviceUnits(Thickness)

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);
static member LogicalToDeviceUnits : System.Windows.Thickness -> System.Windows.Thickness
<Extension()>
Public Function LogicalToDeviceUnits (logicalThickness As Thickness) As Thickness

Parameters

logicalThickness
Thickness Thickness Thickness Thickness

The thickness in logical units.

Returns

Applies to