DpiHelper::DpiHelperImplementation Methods

Visual Studio 2015
 

Namespace:   Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

NameDescription
System_CAPS_pubmethodCreateDeviceFromLogicalImage(Bitmap^, Size, Color, ImageScalingMode)

Creates and returns a new bitmap strip from the logical Bitmap scaled for the device units. 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.(Inherited from DpiHelper.)

System_CAPS_pubmethodCreateDeviceFromLogicalImage(Bitmap^, Size, ImageScalingMode)

Creates and returns a new bitmap strip from the logical Bitmap scaled for the device units. 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.(Inherited from DpiHelper.)

System_CAPS_pubmethodCreateDeviceFromLogicalImage(Icon^, ImageScalingMode)

Creates and returns a new icon scaled for the device units. When displayed on the device, the scaled icon will have same size as the original icon would have when displayed at 96dpi.(Inherited from DpiHelper.)

System_CAPS_pubmethodCreateDeviceFromLogicalImage(Image^, Color, ImageScalingMode)

Creates and returns a new ImageList scaled for the device units. When displayed on the device, the scaled ImageList will have same size as the original ImageList would have when displayed at 96dpi.(Inherited from DpiHelper.)

System_CAPS_pubmethodCreateDeviceFromLogicalImage(Image^, ImageScalingMode)

Creates and returns a new bitmap or metafile from the logical Image scaled for the device units. When displayed on the device, the scaled image will have same size as the original image would have when displayed at 96dpi.(Inherited from DpiHelper.)

System_CAPS_pubmethodCreateDeviceFromLogicalImage(ImageList^, Color, ImageScalingMode)

Creates and returns a new ImageList scaled for the device units. When displayed on the device, the scaled ImageList will have same size as the original imagelist would have when displayed at 96dpi.(Inherited from DpiHelper.)

System_CAPS_pubmethodCreateDeviceFromLogicalImage(ImageList^, ImageScalingMode)

Creates and returns a new ImageList scaled for the device units. When displayed on the device, the scaled ImageList will have same size as the original ImageList would have when displayed at 96dpi.(Inherited from DpiHelper.)

System_CAPS_pubmethodDeviceToLogicalUnits(Point)

Returns a new Point with the input's coordinates converted from device units to logical units.(Inherited from DpiHelper.)

System_CAPS_pubmethodDeviceToLogicalUnits(Rect)

Returns a new Rect with the input's coordinates converted from device units to logical units.(Inherited from DpiHelper.)

System_CAPS_pubmethodDeviceToLogicalUnits(Size)

Returns a new Size with the input's dimensions converted from device units to logical units.(Inherited from DpiHelper.)

System_CAPS_pubmethodDeviceToLogicalUnits(Thickness)

Returns a new Thickness with the input's dimensions converted from device units to logical units.(Inherited from DpiHelper.)

System_CAPS_pubmethodDeviceToLogicalUnitsX(Double)

Transforms a horizontal coordinate from device to logical units.(Inherited from DpiHelper.)

System_CAPS_pubmethodDeviceToLogicalUnitsX(Int32)

Transforms a horizontal integer coordinate from device to logical units.(Inherited from DpiHelper.)

System_CAPS_pubmethodDeviceToLogicalUnitsX(Single)

(Inherited from DpiHelper.)

System_CAPS_pubmethodDeviceToLogicalUnitsY(Double)

Transforms a vertical coordinate from device to logical units.(Inherited from DpiHelper.)

System_CAPS_pubmethodDeviceToLogicalUnitsY(Int32)

Transforms a vertical coordinate from device to logical units.(Inherited from DpiHelper.)

System_CAPS_pubmethodDeviceToLogicalUnitsY(Single)

Transforms a vertical coordinate from device to logical units.(Inherited from DpiHelper.)

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_protmethodGetBitmapScalingModeOverride(Int32, BitmapScalingMode)

Gets the bitmap scaling mode override.(Overrides DpiHelper::GetBitmapScalingModeOverride(Int32, BitmapScalingMode).)

System_CAPS_pubmethodGetDeviceActualSize(FrameworkElement^)

Gets the FrameworkElement's Size in device units.(Inherited from DpiHelper.)

System_CAPS_pubmethodGetDeviceHeight(Window^)

Gets the window's height in device units.(Inherited from DpiHelper.)

System_CAPS_pubmethodGetDeviceLeft(Window^)

Gets the window's left coordinate in device units.(Inherited from DpiHelper.)

System_CAPS_pubmethodGetDeviceRect(Window^)

Gets the window's rectangle in device units.(Inherited from DpiHelper.)

System_CAPS_pubmethodGetDeviceTop(Window^)

Gets the window's top in device units.(Inherited from DpiHelper.)

System_CAPS_pubmethodGetDeviceWidth(Window^)

Gets the window's width in device units.(Inherited from DpiHelper.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_protmethodGetImageScalingModeOverride(Int32, ImageScalingMode)

Gets the image scaling mode override.(Overrides DpiHelper::GetImageScalingModeOverride(Int32, ImageScalingMode).)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodGetUsePreScaledImagesOverride(Int32, Boolean)

Determines whether prescaled images should be used.(Overrides DpiHelper::GetUsePreScaledImagesOverride(Int32, Boolean).)

System_CAPS_pubmethodLogicalToDeviceUnits(Bitmap^, Color, ImageScalingMode)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnits(Bitmap^, ImageScalingMode)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnits(Bitmap^, Size, Color, ImageScalingMode)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnits(Bitmap^, Size, ImageScalingMode)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnits(Icon^, ImageScalingMode)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnits(Image^, Color, ImageScalingMode)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnits(Image^, ImageScalingMode)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnits(ImageList^, Color, ImageScalingMode)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnits(ImageList^, ImageScalingMode)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnits(Point)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnits(Point)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnits(PointF)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnits(Rect)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnits(Rectangle)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnits(RectangleF)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnits(Size)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnits(Size)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnits(SizeF)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnits(Thickness)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnitsX(Double)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnitsX(Int32)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnitsX(Single)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnitsY(Double)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnitsY(Int32)

(Inherited from DpiHelper.)

System_CAPS_pubmethodLogicalToDeviceUnitsY(Single)

(Inherited from DpiHelper.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRoundToDeviceUnitsX(Double)

(Inherited from DpiHelper.)

System_CAPS_pubmethodRoundToDeviceUnitsY(Double)

(Inherited from DpiHelper.)

System_CAPS_pubmethodScaleLogicalImageForDeviceSize(ImageSource^, Size, BitmapScalingMode)

(Inherited from DpiHelper.)

System_CAPS_pubmethodSetDeviceHeight(Window^, Double)

(Inherited from DpiHelper.)

System_CAPS_pubmethodSetDeviceLeft(Window^, Double)

(Inherited from DpiHelper.)

System_CAPS_pubmethodSetDeviceTop(Window^, Double)

(Inherited from DpiHelper.)

System_CAPS_pubmethodSetDeviceWidth(Window^, Double)

(Inherited from DpiHelper.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Return to top
Show: