ImageSize

Overview

ImageSize is a class in Aspose.Words FOSS for .NET.

Contains information about image size and resolution.

This class provides 2 methods for working with ImageSize objects in .NET programs. Available methods include: ImageSize. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: HeightPixels, HeightPoints, HorizontalResolution, VerticalResolution, WidthPixels, WidthPoints.

Properties

NameTypeAccessDescription
WidthPixelsintReadGets the width of the image in pixels.
HeightPixelsintReadGets the height of the image in pixels.
HorizontalResolutiondoubleReadGets the horizontal resolution in DPI.
VerticalResolutiondoubleReadGets the vertical resolution in DPI.
WidthPointsdoubleReadGets the width of the image in points.
HeightPointsdoubleReadGets the height of the image in points.

Methods

SignatureDescription
ImageSize(widthPixels: int, heightPixels: int)Initializes width and height to the given values in pixels.
ImageSize(widthPixels: int, heightPixels: int, horizontalResolution: double, verticalResolution: double)Initializes width, height and resolution to the given values.

See Also