DracoImage.Width

DracoImage.Width property

Gets the width of the image. Calculated as the difference between maximum and minimum values of the X coordinate amongst all vertices. Minimal allowed width is 1.

public override int Width { get; }

Property Value

The width of the image.

Examples

Prints the width of the DRACO drawing.

using (DracoImage drcImage = (DracoImage)Image.Load(fileName))
{
    System.Console.WriteLine("The width of the image is {0}", drcImage.Width);
}

See Also