Aspose::Words::Drawing::ImageSize Class Reference

Detailed Description

Contains information about image size and resolution.

See also
Aspose::Words::Drawing::ImageData::get_ImageSize

#include <Aspose.Words.Cpp/Model/Drawing/ImageSize.h>

+ Inheritance diagram for Aspose::Words::Drawing::ImageSize:

Public Member Functions

 ImageSize (int32_t widthPixels, int32_t heightPixels)
 Initializes width and height to the given values in pixels. Initializes resolution to 96 dpi. More...
 
 ImageSize (int32_t widthPixels, int32_t heightPixels, double horizontalResolution, double verticalResolution)
 Initializes width, height and resolution to the given values. More...
 
int32_t get_HeightPixels () const
 Gets the height of the image in pixels. More...
 
double get_HeightPoints ()
 Gets the height of the image in points. 1 point is 1/72 inch. More...
 
double get_HorizontalResolution () const
 Gets the horizontal resolution in DPI. More...
 
double get_VerticalResolution () const
 Gets the vertical resolution in DPI. More...
 
int32_t get_WidthPixels () const
 Gets the width of the image in pixels. More...
 
double get_WidthPoints ()
 Gets the width of the image in points. 1 point is 1/72 inch. More...
 
- Public Member Functions inherited from Object
ASPOSECPP_SHARED_API Object ()
 
ASPOSECPP_SHARED_API Object (Object const &x)
 
virtual ASPOSECPP_SHARED_API ~Object ()
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 
Detail::SmartPtrCounter * GetCounter ()
 
virtual ASPOSECPP_SHARED_API int GetHashCode () const
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 
ASPOSECPP_SHARED_API void Lock ()
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 
Objectoperator= (Object const &x)
 
bool ReferenceEquals (String const &str, std::nullptr_t)
 
bool ReferenceEquals (String const &str1, String const &str2)
 
int RemovedSharedRefs (int count)
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (unsigned int argument)
 
int SharedCount () const
 
ObjectSharedRefAdded ()
 
int SharedRefRemovedSafe ()
 
virtual ASPOSECPP_SHARED_API String ToString () const
 
ASPOSECPP_SHARED_API void Unlock ()
 
Detail::SmartPtrCounter * WeakRefAdded ()
 
void WeakRefRemoved ()
 

Additional Inherited Members

- Public Types inherited from Object
typedef SmartPtr< Objectptr
 
typedef System::Details::SharedMembersType shared_members_type
 
- Static Public Member Functions inherited from Object
bool Equals (double const &objA, double const &objB)
 
bool Equals (float const &objA, float const &objB)
 
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 
static const TypeInfoType ()
 

Constructor & Destructor Documentation

◆ ImageSize() [1/2]

Aspose::Words::Drawing::ImageSize::ImageSize ( int32_t  widthPixels,
int32_t  heightPixels 
)

Initializes width and height to the given values in pixels. Initializes resolution to 96 dpi.

Parameters
widthPixelsWidth in pixels.
heightPixelsHeight in pixels.

◆ ImageSize() [2/2]

Aspose::Words::Drawing::ImageSize::ImageSize ( int32_t  widthPixels,
int32_t  heightPixels,
double  horizontalResolution,
double  verticalResolution 
)

Initializes width, height and resolution to the given values.

Parameters
widthPixelsWidth in pixels.
heightPixelsHeight in pixels.
horizontalResolutionHorizontal resolution in DPI.
verticalResolutionVertical resolution in DPI.

Member Function Documentation

◆ get_HeightPixels()

int32_t Aspose::Words::Drawing::ImageSize::get_HeightPixels ( ) const

Gets the height of the image in pixels.

◆ get_HeightPoints()

double Aspose::Words::Drawing::ImageSize::get_HeightPoints ( )

Gets the height of the image in points. 1 point is 1/72 inch.

◆ get_HorizontalResolution()

double Aspose::Words::Drawing::ImageSize::get_HorizontalResolution ( ) const

Gets the horizontal resolution in DPI.

◆ get_VerticalResolution()

double Aspose::Words::Drawing::ImageSize::get_VerticalResolution ( ) const

Gets the vertical resolution in DPI.

◆ get_WidthPixels()

int32_t Aspose::Words::Drawing::ImageSize::get_WidthPixels ( ) const

Gets the width of the image in pixels.

◆ get_WidthPoints()

double Aspose::Words::Drawing::ImageSize::get_WidthPoints ( )

Gets the width of the image in points. 1 point is 1/72 inch.