ConvertFromHorizontalPixels
<< Click to Display Table of Contents >> ConvertFromHorizontalPixels |
Converts an x-axis pixel coordinate from device pixels to application pixels.
Note: For more information concerning the differences between application pixels and device pixels, please see the Working with Pixel Coordinates educational resource. |
A double representing an x-coordinate value in terms of application pixels
ChartingExtensions.ConvertFromHorizontalPixels(this int x, PresentationSource target)
<int>.ConvertFromHorizontalPixels(PresentationSource target)
x |
The horizontal int coordinates in device pixels to convert |
target |
The PresenationSource representing the display surface used for the conversion
Note: For Charts, see ChartControl.PresentationSource |
int applicationPixelX;
protected override void OnRender(ChartControl chartControl, ChartScale chartScale) |