Returns the value of the left edge of this AnnRectangle structure converted to its equivalent in the specified AnnUnit unit of measure.
public float ConvertedLeft(Leadtools.Annotations.AnnUnitConverter converter,Leadtools.Annotations.AnnUnit unit)
Public Function ConvertedLeft( _ByVal converter As Leadtools.Annotations.AnnUnitConverter, _ByVal unit As Leadtools.Annotations.AnnUnit _) As Single
public:float ConvertedLeft(Leadtools.Annotations.AnnUnitConverter^ converter,Leadtools.Annotations.AnnUnit unit)
converter
The AnnUnitConverter object to be used in converting the value.
unit
Destination AnnUnit value indicating the unit of measure.
A value for the left edge of this AnnRectangle structure, converted to its equivalent in the specified AnnUnit unit of measure.
This example creates a new AnnRectangle in inches and then shows the X, Y, Left, Top, Right, Bottom, Width and Height values in pixels.
using Leadtools;using Leadtools.Annotations;public void AnnRectangle_ConvertedLeft(){// set up a new unit converter with 96 DPIAnnUnitConverter converter = new AnnUnitConverter(96, 96);// create a new annotation rectangle at 1.5F, 2.0F with width, height of 3.0F, and 4.0F in inchesAnnRectangle rc = new AnnRectangle(1.5F, 2F, 3F, 4F, AnnUnit.Inch);string s;// show the rectangles = string.Format("Rectangle is {0}\n", rc);// show the Left, Top, Right, Bottom, Width and Height of this rectangle in pixelss = s + string.Format("Left is {0} Pixels\n", rc.ConvertedLeft(converter, AnnUnit.Pixel));s = s + string.Format("Top is {0} Pixels\n", rc.ConvertedTop(converter, AnnUnit.Pixel));s = s + string.Format("Right is {0} Pixels\n", rc.ConvertedRight(converter, AnnUnit.Pixel));s = s + string.Format("Bottom is {0} Pixels\n", rc.ConvertedBottom(converter, AnnUnit.Pixel));s = s + string.Format("Width is {0} Pixels\n", rc.ConvertedWidth(converter, AnnUnit.Pixel));s = s + string.Format("Height is {0} Pixels", rc.ConvertedHeight(converter, AnnUnit.Pixel));MessageBox.Show(s);}
Imports LeadtoolsImports Leadtools.AnnotationsPublic Sub AnnRectangle_ConvertedLeft()' set up a new unit converter with 96 DPIDim converter As AnnUnitConverter = New AnnUnitConverter(96, 96)' create a new annotation rectangle at 1.5F, 2.0F with width, height of 3.0F, and 4.0F in inchesDim rc As AnnRectangle = New AnnRectangle(1.5F, 2.0F, 3.0F, 4.0F, AnnUnit.Inch)Dim s As String' show the rectangles = String.Format("Rectangle is {0}" & Constants.vbLf, rc)' show the Left, Top, Right, Bottom, Width and Height of this rectangle in pixelss = s & String.Format("Left is {0} Pixels" & Constants.vbLf, rc.ConvertedLeft(converter, AnnUnit.Pixel))s = s & String.Format("Top is {0} Pixels" & Constants.vbLf, rc.ConvertedTop(converter, AnnUnit.Pixel))s = s & String.Format("Right is {0} Pixels" & Constants.vbLf, rc.ConvertedRight(converter, AnnUnit.Pixel))s = s & String.Format("Bottom is {0} Pixels" & Constants.vbLf, rc.ConvertedBottom(converter, AnnUnit.Pixel))s = s & String.Format("Width is {0} Pixels" & Constants.vbLf, rc.ConvertedWidth(converter, AnnUnit.Pixel))s = s & String.Format("Height is {0} Pixels", rc.ConvertedHeight(converter, AnnUnit.Pixel))MessageBox.Show(s)End Sub
|
Products |
Support |
Feedback: ConvertedLeft Method - Leadtools.Annotations |
Introduction |
Help Version 19.0.2017.6.20
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.