Aspose::Words::Rendering::OfficeMathRenderer Class Reference

Detailed Description

Provides methods to render an individual OfficeMath to a raster or vector image or to a Graphics object.

#include <Aspose.Words.Cpp/Rendering/OfficeMathRenderer.h>

+ Inheritance diagram for Aspose::Words::Rendering::OfficeMathRenderer:

Public Member Functions

 OfficeMathRenderer (SharedPtr< OfficeMath > math)
 Initializes a new instance of this class. More...
 
- Public Member Functions inherited from NodeRendererBase
 NodeRendererBase ()
 
RectangleF get_BoundsInPoints ()
 Gets the actual bounds of the shape in points. More...
 
RectangleF get_OpaqueBoundsInPoints ()
 Gets the opaque bounds of the shape in points. More...
 
SizeF get_SizeInPoints ()
 Gets the actual size of the shape in points. More...
 
Rectangle GetBoundsInPixels (float scale, float dpi)
 Calculates the bounds of the shape in pixels for a specified zoom factor and resolution. More...
 
Rectangle GetBoundsInPixels (float scale, float horizontalDpi, float verticalDpi)
 Calculates the bounds of the shape in pixels for a specified zoom factor and resolution. More...
 
Rectangle GetOpaqueBoundsInPixels (float scale, float dpi)
 Calculates the opaque bounds of the shape in pixels for a specified zoom factor and resolution. More...
 
Rectangle GetOpaqueBoundsInPixels (float scale, float horizontalDpi, float verticalDpi)
 Calculates the opaque bounds of the shape in pixels for a specified zoom factor and resolution. More...
 
Size GetSizeInPixels (float scale, float dpi)
 Calculates the size of the shape in pixels for a specified zoom factor and resolution. More...
 
Size GetSizeInPixels (float scale, float horizontalDpi, float verticalDpi)
 Calculates the size of the shape in pixels for a specified zoom factor and resolution. More...
 
SizeF RenderToScale (SharedPtr< Graphics > graphics, float x, float y, float scale)
 Renders the shape into a Graphics object to a specified scale. More...
 
float RenderToSize (SharedPtr< Graphics > graphics, float x, float y, float width, float height)
 Renders the shape into a Graphics object to a specified size. More...
 
void Save (SharedPtr< Stream > stream, SharedPtr< ImageSaveOptions > saveOptions)
 Renders the shape into an image and saves into a stream. More...
 
void Save (String fileName, SharedPtr< ImageSaveOptions > saveOptions)
 Renders the shape into an image and saves into a file. 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

◆ OfficeMathRenderer()

Aspose::Words::Rendering::OfficeMathRenderer::OfficeMathRenderer ( System::SharedPtr< Aspose::Words::Math::OfficeMath math)

Initializes a new instance of this class.

Parameters
mathThe OfficeMath object that you want to render.