Aspose::Page::XPS::Presentation::Aps::ApsDevice Class Reference

Inherits Aspose::Page::Device, Aspose::Page::IMultiPartitionDevice, and Aspose::Page::IInteractiveDevice.

Public Member Functions

ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Aspose::Rendering::ApsPage > > > > > get_Pages () const
 Returns the resulting ApsPages as a list of lists. The first dimension is for partitions and the second one is for pages within partions. More...
 
ASPOSE_PAGE_SHARED_API int32_t get_CurrentPageNumber () override
 Returns the absolute number of the current page within the document. More...
 
ASPOSE_PAGE_SHARED_API int32_t get_CurrentRelativePageNumber () override
 Returns the relative number of the current page within the current partition. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Collections::Generic::IDictionary< int32_t, System::SharedPtr< System::Collections::Generic::List< System::Drawing::RectangleF > > > > get_InternalHyperlinksTargets () override
 Returns the map of internal hyperlink targets. More...
 
ASPOSE_PAGE_SHARED_API ApsDevice ()
 Creates a new instance. More...
 
ASPOSE_PAGE_SHARED_API ApsDevice (System::Drawing::Size pageSize)
 Creates a new instance with the specified media size. More...
 
ASPOSE_PAGE_SHARED_API void ReNew () override
 Sets this devices to the initial state. More...
 
ASPOSE_PAGE_SHARED_API void StartDocument () override
 Starts the document. More...
 
ASPOSE_PAGE_SHARED_API void EndDocument () override
 Accomplishes the document. More...
 
ASPOSE_PAGE_SHARED_API void Reset () override
 Resets the device. More...
 
ASPOSE_PAGE_SHARED_API void InitPageNumbers () override
 Initializes numbers of pages to output. More...
 
ASPOSE_PAGE_SHARED_API bool OpenPage (System::String title) override
 Starts a new page with the specifies title. More...
 
ASPOSE_PAGE_SHARED_API bool OpenPage (float width, float height) override
 Starts a new page with the specified width and height. More...
 
ASPOSE_PAGE_SHARED_API void ClosePage () override
 Accomplishes the page. More...
 
ASPOSE_PAGE_SHARED_API void UpdatePageParameters (System::SharedPtr< IMultiPageDevice > device) override
 Updates the current page parameters. More...
 
ASPOSE_PAGE_SHARED_API void OpenPartition () override
 Starts a new document partition. More...
 
ASPOSE_PAGE_SHARED_API void ClosePartition () override
 Accomplished the document partition. More...
 
ASPOSE_PAGE_SHARED_API void SetHyperlinkTarget (System::String targetUri) override
 Set the hyperlink with an external URI as its target. More...
 
ASPOSE_PAGE_SHARED_API void SetHyperlinkTarget (int32_t targetPageNumber) override
 Set the hyperlink with a page number as its target. More...
 
ASPOSE_PAGE_SHARED_API void AddOutline (int32_t outlineLevel, System::String description) override
 Adds an outline item with the last object as its target. More...
 
ASPOSE_PAGE_SHARED_API void AddOutline (System::Drawing::PointF origin, int32_t outlineLevel, System::String description) override
 Adds an outline item with the origin point as its target. More...
 
ASPOSE_PAGE_SHARED_API void SaveInternalHyperlinkTarget (int32_t absolutePageNumber, System::Drawing::RectangleF rect) override
 Saves internal hyperlink target as an absolute page number and a rectangular area on a page. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< DeviceCreate () override
 Creates a new instance of the device based on this device instance. Writes this device graphics state, i.e. creates ApsCanvas instance(s) with corresponding RenderTransform and Clip properties. More...
 
ASPOSE_PAGE_SHARED_API void Dispose () override
 Disposes this device instance. Finalizes this device instance graphics state, i.e. switches APS composing context to the ApsCanvas of the level higher then this device's graphics state ApsCanvas. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Drawing2D::MatrixGetTransform () override
 Returns the current transformation matrix. More...
 
ASPOSE_PAGE_SHARED_API void SetTransform (System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform) override
 Sets the current transformation matrix. More...
 
ASPOSE_PAGE_SHARED_API void Transform (System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform) override
 Multiplies the current transformation matrix by the specified Matrix. More...
 
ASPOSE_PAGE_SHARED_API void Translate (double x, double y) override
 Applies the specified translation vector to the current transformation matrix. More...
 
ASPOSE_PAGE_SHARED_API void Rotate (double theta) override
 Applies a clockwise rotation about the origin to the current transformation matrix. More...
 
ASPOSE_PAGE_SHARED_API void Scale (double x, double y) override
 Applies the specified scale vector to the current transformation matrix. More...
 
ASPOSE_PAGE_SHARED_API void Shear (double shx, double shy) override
 Applies the specified shear vector to the current transformation matrix. More...
 
ASPOSE_PAGE_SHARED_API void SetClip (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > clipPath) override
 Adds the specified path to the current clip path. More...
 
ASPOSE_PAGE_SHARED_API void Draw (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > path) override
 Draws the specified path. More...
 
ASPOSE_PAGE_SHARED_API void Fill (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > path) override
 Fills the specified path. More...
 
ASPOSE_PAGE_SHARED_API void DrawString (System::String str, double x, double y) override
 Draws a string at the specified position. More...
 
ASPOSE_PAGE_SHARED_API System::String ToString () const override
 Returns the name of device type. More...
 
- Public Member Functions inherited from Aspose::Page::Device
virtual ASPOSE_PAGE_SHARED_API void set_SaveOptions (System::SharedPtr< Aspose::Page::SaveOptions > value)
 Options for managing rendering process. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< System::Object > > > get_Properties () const
 Device properties including metadata. More...
 
ASPOSE_PAGE_SHARED_API void set_Properties (System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< System::Object >>> value)
 Device properties including metadata. More...
 
ASPOSE_PAGE_SHARED_API System::String get_Creator () const
 Returns or specifies creator of resulting device output. More...
 
ASPOSE_PAGE_SHARED_API void set_Creator (System::String value)
 Returns or specifies creator of resulting device output. More...
 
virtual ASPOSE_PAGE_SHARED_API System::Drawing::Size get_Size ()
 Returns or specifies a size of the page. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_Size (System::Drawing::Size value)
 Returns or specifies a size of the page. More...
 
virtual ASPOSE_PAGE_SHARED_API bool get_IsDirectRGB ()
 Indicates whether device uses direct RGB mode, that is RGB. More...
 
virtual ASPOSE_PAGE_SHARED_API System::Drawing::Color get_Background ()
 Returns or specifies current background of the page. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_Background (System::Drawing::Color value)
 Returns or specifies current background of the page. More...
 
virtual ASPOSE_PAGE_SHARED_API float get_Opacity ()
 Returns or specifies current opacity. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_Opacity (float value)
 Returns or specifies current opacity. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Penget_Stroke ()
 Returns or specifies current stroke. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_Stroke (System::SharedPtr< System::Drawing::Pen > value)
 Returns or specifies current stroke. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Brushget_Paint ()
 Returns or specifies current paint. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_Paint (System::SharedPtr< System::Drawing::Brush > value)
 Returns or specifies current paint. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Brushget_OpacityMask ()
 Returns or specifies current opacity mask. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_OpacityMask (System::SharedPtr< System::Drawing::Brush > value)
 Returns or specifies current opacity mask. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< ITrFontget_Font ()
 Returns or specifies current font. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_Font (System::SharedPtr< ITrFont > value)
 Returns or specifies current font. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Drawing2D::Matrixget_CharTM ()
 Returns or specifies current characters transform. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_CharTM (System::SharedPtr< System::Drawing::Drawing2D::Matrix > value)
 Returns or specifies current characters transform. More...
 
virtual ASPOSE_PAGE_SHARED_API Aspose::Page::TextRenderingMode get_TextRenderingMode ()
 Returns or specifies current text rendering mode. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_TextRenderingMode (Aspose::Page::TextRenderingMode value)
 Returns or specifies current text rendering mode. More...
 
virtual ASPOSE_PAGE_SHARED_API float get_TextStrokeWidth ()
 Returns or specifies current text stroke width. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_TextStrokeWidth (float value)
 Returns or specifies current text stroke width. More...
 
ASPOSE_PAGE_SHARED_API bool get_IsLicensed ()
 Indicates whether this instance of Aspose.Page library is licensed. More...
 
ASPOSE_PAGE_SHARED_API Device (System::Drawing::Size pageSize)
 Initializes Device with a size of a page. More...
 
ASPOSE_PAGE_SHARED_API System::String GetProperty (System::String key)
 Gets a value of string property. More...
 
ASPOSE_PAGE_SHARED_API System::Drawing::Color GetPropertyColor (System::String key)
 Gets a value of color property. More...
 
ASPOSE_PAGE_SHARED_API System::Drawing::RectangleF GetPropertyRectangle (System::String key)
 Gets a value of rectangle property. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< MarginsGetPropertyMargins (System::String key)
 Gets a value of margin property. More...
 
ASPOSE_PAGE_SHARED_API System::Drawing::Size GetPropertySize (System::String key)
 Gets a value of size property. More...
 
ASPOSE_PAGE_SHARED_API int32_t GetPropertyInt (System::String key)
 Gets a value of integer property. More...
 
ASPOSE_PAGE_SHARED_API double GetPropertyDouble (System::String key)
 Gets a value of double property. More...
 
ASPOSE_PAGE_SHARED_API bool IsProperty (System::String key)
 Gets a value of boolean property. More...
 
virtual ASPOSE_PAGE_SHARED_API void Rotate (double theta, double x, double y)
 Rotate the current transformation matrix around a point. More...
 
virtual ASPOSE_PAGE_SHARED_API void InitClip ()
 Initializes clip of the device. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawImage (System::SharedPtr< System::Drawing::Bitmap > image, System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform, System::Drawing::Color bkg)
 Draws an image with assigned transform and background. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteComment (System::String comment)
 Writes a comment. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawArc (double x, double y, double width, double height, double startAngle, double arcAngle)
 Draws an arc. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawLine (double x1, double y1, double x2, double y2)
 Draws a line segment. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawOval (double x, double y, double width, double height)
 Draws an oval. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawPolyline (System::ArrayPtr< int32_t > xPoints, System::ArrayPtr< int32_t > yPoints, int32_t nPoints)
 Draws a polyline. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawPolyline (System::ArrayPtr< double > xPoints, System::ArrayPtr< double > yPoints, int32_t nPoints)
 Draws a polyline. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawPolygon (System::ArrayPtr< int32_t > xPoints, System::ArrayPtr< int32_t > yPoints, int32_t nPoints)
 Draws a polygon. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawPolygon (System::ArrayPtr< double > xPoints, System::ArrayPtr< double > yPoints, int32_t nPoints)
 Draws a poligone. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawRect (double x, double y, double width, double height)
 Draws a rectangle. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawRoundRect (double x, double y, double width, double height, double arcWidth, double arcHeight)
 Draws a round rectangle. More...
 
virtual ASPOSE_PAGE_SHARED_API void FillArc (double x, double y, double width, double height, double startAngle, double arcAngle)
 Fills an arc. More...
 
virtual ASPOSE_PAGE_SHARED_API void FillOval (double x, double y, double width, double height)
 Fills an oval. More...
 
virtual ASPOSE_PAGE_SHARED_API void FillPolygon (System::ArrayPtr< int32_t > xPoints, System::ArrayPtr< int32_t > yPoints, int32_t nPoints)
 Fills a poligone. More...
 
virtual ASPOSE_PAGE_SHARED_API void FillPolygon (System::ArrayPtr< double > xPoints, System::ArrayPtr< double > yPoints, int32_t nPoints)
 Fills a poligone. More...
 
virtual ASPOSE_PAGE_SHARED_API void FillRect (double x, double y, double width, double height)
 Fills a rectangle. More...
 
virtual ASPOSE_PAGE_SHARED_API void FillRoundRect (double x, double y, double width, double height, double arcWidth, double arcHeight)
 Fills a round rectangle. More...
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Protected Member Functions

ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Rendering::ApsCanvas > get_CurrentCanvas ()
 Returns the current ApsCanvas instance. More...
 
ASPOSE_PAGE_SHARED_API ApsDevice (System::SharedPtr< ApsDevice > device)
 The clone constructor. More...
 
ASPOSE_PAGE_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (ApsDevice, CODEPORTING_ARGS(System::SharedPtr< ApsDevice > device))
 
virtual ASPOSE_PAGE_SHARED_API void WriteHyperlink (System::SharedPtr< Aspose::Rendering::ApsHyperlink > hyperlink)
 Writes the hyperlink. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteOutlineItem (System::SharedPtr< Aspose::Rendering::ApsOutlineItem > outlineItem)
 
virtual ASPOSE_PAGE_SHARED_API void WriteGraphicsSave ()
 Writes this device graphics state, i.e. creates ApsCanvas instance(s) with corresponding RenderTransform and Clip properties. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteGraphicsRestore ()
 Finalizes this device instance graphics state, i.e. switches APS composing context to the ApsCanvas of the level higher then this device's graphics state ApsCanvas. More...
 
ASPOSE_PAGE_SHARED_API void ApplyGraphicState (System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform, System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > clip) override
 
virtual ASPOSE_PAGE_SHARED_API void WriteTransform (System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform)
 Converts the specified transformation matrix to APS format. More...
 
virtual ASPOSE_PAGE_SHARED_API void AddClip (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > clipPath)
 Adds the specified path to the current clip path. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteClip (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > clipPath)
 Converts the specified clip path to APS format. More...
 
ASPOSE_PAGE_SHARED_API void WriteWidth (float width) override
 Writes the line width. More...
 
ASPOSE_PAGE_SHARED_API void WriteCap (System::Drawing::Drawing2D::LineCap cap) override
 Writes the line cap. More...
 
ASPOSE_PAGE_SHARED_API void WriteJoin (System::Drawing::Drawing2D::LineJoin join) override
 Writes the line join. More...
 
ASPOSE_PAGE_SHARED_API void WriteMiterLimit (float limit) override
 Writes the miter limit. More...
 
ASPOSE_PAGE_SHARED_API void WriteDash (System::ArrayPtr< double > dash, double phase, System::Drawing::Drawing2D::DashCap dashCap) override
 Writes dash parameters. More...
 
ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::SolidBrush > brush) override
 Writes the stroke brush. More...
 
ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::Drawing2D::LinearGradientBrush > brush) override
 Writes the stroke brush. More...
 
ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::TextureBrush > brush) override
 Writes the stroke brush. More...
 
ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::Brush > brush) override
 Writes the stroke brush. More...
 
ASPOSE_PAGE_SHARED_API void DrawString (System::String str, double x, double y, double width, System::SharedPtr< Aspose::Rendering::ApsGlyphsIndices > indices, bool isRtl=false) override
 
System::SharedPtr< Aspose::Foundation::Drawing::DrPen > ToDrPen (System::SharedPtr< System::Drawing::Pen > pen, System::SharedPtr< System::Drawing::Brush > brush, float opacity, System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > path)
 
System::SharedPtr< Aspose::Foundation::Drawing::DrBrush > ToDrBrush (System::SharedPtr< System::Drawing::Brush > brush, float opacity, System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > path=nullptr, float penWidth=0.f)
 
void Serialize (System::String path)
 
virtual ASPOSE_PAGE_SHARED_API ~ApsDevice ()
 
- Protected Member Functions inherited from Aspose::Page::Device
bool get_IsMainDocument () const
 
ASPOSE_PAGE_SHARED_API Device ()
 Initializes new instance of Device. More...
 
virtual ASPOSE_PAGE_SHARED_API void ReNewForMerge (bool mainDocument)
 
ASPOSE_PAGE_SHARED_API Device (System::SharedPtr< Device > device)
 Clone constructor. Initializes this device with existing device. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< Aspose::Page::SaveOptionsGetSaveOptions ()
 
ASPOSE_PAGE_SHARED_API void InitProperties (System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< System::Object >>> defaults)
 Initializes default properties of device with values. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Drawing2D::GraphicsPathCreateShape (System::ArrayPtr< int32_t > xPoints, System::ArrayPtr< int32_t > yPoints, int32_t nPoints, bool close)
 Creates a polyline/polygon shape from a set of points. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Drawing2D::GraphicsPathCreateShape (System::ArrayPtr< double > xPoints, System::ArrayPtr< double > yPoints, int32_t nPoints, bool close)
 Creates a polyline/polygon shape from a set of points. More...
 
virtual ASPOSE_PAGE_SHARED_API void ClearRect (float x, float y, float width, float height)
 Clears rectangle by painting it with the backgroundColor. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteBackground ()
 Writes out current background. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteStroke (System::SharedPtr< System::Drawing::Pen > stroke)
 Writes out the current stroke. If stroke is an instance of BasicStroke it will call writeWidth, writeCap, writeJoin, writeMiterLimit and writeDash, if any were different than the current stroke. More...
 
virtual ASPOSE_PAGE_SHARED_API void HandleException (System::Exception exception)
 Handles an exception which has been caught. Dispatches exception to writeWarning for UnsupportedOperationExceptions and writeError for others More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteWarning (System::Exception warning)
 Writes out a warning, by default to System.err. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteWarning (System::String warning)
 Writes out a warning, by default to System.err. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteError (System::Exception error)
 Writes out an error, by default the stack trace is printed. More...
 
virtual ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::Drawing2D::PathGradientBrush > paint)
 Writes out paint as the given gradient. More...
 
virtual ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< EPS::GradientBrush > paint)
 Writes out paint as the given gradient. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteString (System::SharedPtr< ITrFont > font, System::String str)
 Writes out string with specified font. More...
 
virtual ASPOSE_PAGE_SHARED_API int64_t GetFinalWrittenLength ()
 
virtual ASPOSE_PAGE_SHARED_API void SetVentureLicense (System::SharedPtr< LicenseManagement::VentureLicense > license)
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< LicenseManagement::VentureLicense > GetVentureLicense ()
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 
- Static Public Attributes inherited from Aspose::Page::Device
static ASPOSE_PAGE_SHARED_API System::String VERSION
 Current device version. More...
 
- Protected Attributes inherited from Aspose::Page::Device
System::String creator
 Creator of resulting device output. More...
 
System::SharedPtr< Aspose::Page::SaveOptionssaveOptions
 Options for managing rendering process. More...
 
System::Drawing::Size size
 Size of the page. More...
 
float opacity
 Current opacity. More...
 
System::SharedPtr< System::Drawing::Penstroke
 Current stroke. More...
 
System::SharedPtr< System::Drawing::Brushpaint
 Current paint. More...
 
System::SharedPtr< System::Drawing::BrushopacityMask
 Current opacity mask. More...
 
System::SharedPtr< ITrFontfont
 Current font. More...
 
System::SharedPtr< System::Drawing::Drawing2D::MatrixcharTM
 Current character transform. More...
 
Aspose::Page::TextRenderingMode textRenderingMode
 Current text rendering mode. More...
 
float textStrokeWidth
 Current text stroke width. More...
 
bool mainDocument
 

Constructor & Destructor Documentation

◆ ApsDevice() [1/3]

ASPOSE_PAGE_SHARED_API Aspose::Page::XPS::Presentation::Aps::ApsDevice::ApsDevice ( )

Creates a new instance.

◆ ApsDevice() [2/3]

ASPOSE_PAGE_SHARED_API Aspose::Page::XPS::Presentation::Aps::ApsDevice::ApsDevice ( System::Drawing::Size  pageSize)

Creates a new instance with the specified media size.

Parameters
pageSizeThe size of the device output media.

◆ ApsDevice() [3/3]

ASPOSE_PAGE_SHARED_API Aspose::Page::XPS::Presentation::Aps::ApsDevice::ApsDevice ( System::SharedPtr< ApsDevice device)
protected

The clone constructor.

Parameters
deviceThe device to clone.

◆ ~ApsDevice()

virtual ASPOSE_PAGE_SHARED_API Aspose::Page::XPS::Presentation::Aps::ApsDevice::~ApsDevice ( )
protectedvirtual

Member Function Documentation

◆ AddClip()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::AddClip ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath clipPath)
protectedvirtual

Adds the specified path to the current clip path.

Parameters
clipPathThe clip path.

◆ AddOutline() [1/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::AddOutline ( int32_t  outlineLevel,
System::String  description 
)
overridevirtual

Adds an outline item with the last object as its target.

Parameters
outlineLevelThe outline level.
descriptionThe item description.

Implements Aspose::Page::IInteractiveDevice.

◆ AddOutline() [2/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::AddOutline ( System::Drawing::PointF  origin,
int32_t  outlineLevel,
System::String  description 
)
overridevirtual

Adds an outline item with the origin point as its target.

Parameters
originThe target origin.
outlineLevelThe outline level.
descriptionThe item description.

Implements Aspose::Page::IInteractiveDevice.

◆ ApplyGraphicState()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::ApplyGraphicState ( System::SharedPtr< System::Drawing::Drawing2D::Matrix transform,
System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath clip 
)
overrideprotectedvirtual

Reimplemented from Aspose::Page::Device.

◆ ClosePage()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::ClosePage ( )
overridevirtual

Accomplishes the page.

Implements Aspose::Page::IMultiPageDevice.

◆ ClosePartition()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::ClosePartition ( )
overridevirtual

Accomplished the document partition.

Implements Aspose::Page::IMultiPartitionDevice.

◆ Create()

ASPOSE_PAGE_SHARED_API System::SharedPtr<Device> Aspose::Page::XPS::Presentation::Aps::ApsDevice::Create ( )
overridevirtual

Creates a new instance of the device based on this device instance. Writes this device graphics state, i.e. creates ApsCanvas instance(s) with corresponding RenderTransform and Clip properties.

Returns
The new device instance.

Reimplemented from Aspose::Page::Device.

◆ Dispose()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::Dispose ( )
overridevirtual

Disposes this device instance. Finalizes this device instance graphics state, i.e. switches APS composing context to the ApsCanvas of the level higher then this device's graphics state ApsCanvas.

Reimplemented from Aspose::Page::Device.

◆ Draw()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::Draw ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath path)
overridevirtual

Draws the specified path.

Parameters
pathThe path to draw.

Reimplemented from Aspose::Page::Device.

◆ DrawString() [1/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::DrawString ( System::String  str,
double  x,
double  y 
)
overridevirtual

Draws a string at the specified position.

Parameters
strThe text.
xThe x-coordinate of the string position.
yThe y-coordinate of the string position.

Reimplemented from Aspose::Page::Device.

◆ DrawString() [2/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::DrawString ( System::String  str,
double  x,
double  y,
double  width,
System::SharedPtr< Aspose::Rendering::ApsGlyphsIndices >  indices,
bool  isRtl = false 
)
overrideprotectedvirtual

Reimplemented from Aspose::Page::Device.

◆ EndDocument()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::EndDocument ( )
overridevirtual

Accomplishes the document.

Reimplemented from Aspose::Page::Device.

◆ Fill()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::Fill ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath path)
overridevirtual

Fills the specified path.

Parameters
pathThe path to fill.

Reimplemented from Aspose::Page::Device.

◆ get_CurrentCanvas()

ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Rendering::ApsCanvas> Aspose::Page::XPS::Presentation::Aps::ApsDevice::get_CurrentCanvas ( )
protected

Returns the current ApsCanvas instance.

◆ get_CurrentPageNumber()

ASPOSE_PAGE_SHARED_API int32_t Aspose::Page::XPS::Presentation::Aps::ApsDevice::get_CurrentPageNumber ( )
overridevirtual

Returns the absolute number of the current page within the document.

Implements Aspose::Page::IMultiPageDevice.

◆ get_CurrentRelativePageNumber()

ASPOSE_PAGE_SHARED_API int32_t Aspose::Page::XPS::Presentation::Aps::ApsDevice::get_CurrentRelativePageNumber ( )
overridevirtual

Returns the relative number of the current page within the current partition.

Implements Aspose::Page::IMultiPartitionDevice.

◆ get_InternalHyperlinksTargets()

ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Collections::Generic::IDictionary<int32_t, System::SharedPtr<System::Collections::Generic::List<System::Drawing::RectangleF> > > > Aspose::Page::XPS::Presentation::Aps::ApsDevice::get_InternalHyperlinksTargets ( )
overridevirtual

Returns the map of internal hyperlink targets.

Implements Aspose::Page::IInteractiveDevice.

◆ get_Pages()

ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Rendering::ApsPage> > > > > Aspose::Page::XPS::Presentation::Aps::ApsDevice::get_Pages ( ) const

Returns the resulting ApsPages as a list of lists. The first dimension is for partitions and the second one is for pages within partions.

◆ GetTransform()

ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Drawing::Drawing2D::Matrix> Aspose::Page::XPS::Presentation::Aps::ApsDevice::GetTransform ( )
overridevirtual

Returns the current transformation matrix.

Returns
The current transformation matrix.

Reimplemented from Aspose::Page::Device.

◆ InitPageNumbers()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::InitPageNumbers ( )
overridevirtual

Initializes numbers of pages to output.

Implements Aspose::Page::IMultiPageDevice.

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION()

ASPOSE_PAGE_SHARED_API Aspose::Page::XPS::Presentation::Aps::ApsDevice::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( ApsDevice  ,
CODEPORTING_ARGS(System::SharedPtr< ApsDevice > device)   
)
protected

◆ OpenPage() [1/2]

ASPOSE_PAGE_SHARED_API bool Aspose::Page::XPS::Presentation::Aps::ApsDevice::OpenPage ( System::String  title)
overridevirtual

Starts a new page with the specifies title.

Parameters
titleThe title.
Returns
True if started page is to be output (it's number is contained in PageNumbers save options). False, otherwise.

Implements Aspose::Page::IMultiPageDevice.

◆ OpenPage() [2/2]

ASPOSE_PAGE_SHARED_API bool Aspose::Page::XPS::Presentation::Aps::ApsDevice::OpenPage ( float  width,
float  height 
)
overridevirtual

Starts a new page with the specified width and height.

Parameters
widthThe width of the page.
heightThe height of the page.
Returns
True if started page is to be output (it's number is contained in PageNumbers save options). False, otherwise.

Implements Aspose::Page::IMultiPageDevice.

◆ OpenPartition()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::OpenPartition ( )
overridevirtual

Starts a new document partition.

Implements Aspose::Page::IMultiPartitionDevice.

◆ ReNew()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::ReNew ( )
overridevirtual

Sets this devices to the initial state.

Reimplemented from Aspose::Page::Device.

◆ Reset()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::Reset ( )
overridevirtual

Resets the device.

Reimplemented from Aspose::Page::Device.

◆ Rotate()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::Rotate ( double  theta)
overridevirtual

Applies a clockwise rotation about the origin to the current transformation matrix.

Parameters
thetaThe angle of the rotation, in radians.

Reimplemented from Aspose::Page::Device.

◆ SaveInternalHyperlinkTarget()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::SaveInternalHyperlinkTarget ( int32_t  absolutePageNumber,
System::Drawing::RectangleF  rect 
)
overridevirtual

Saves internal hyperlink target as an absolute page number and a rectangular area on a page.

Parameters
absolutePageNumberThe absolute page number.
rectThe rectangular area on a page.

Implements Aspose::Page::IInteractiveDevice.

◆ Scale()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::Scale ( double  x,
double  y 
)
overridevirtual

Applies the specified scale vector to the current transformation matrix.

Parameters
xThe x scale factor.
yThe y scale factor.

Reimplemented from Aspose::Page::Device.

◆ Serialize()

void Aspose::Page::XPS::Presentation::Aps::ApsDevice::Serialize ( System::String  path)
protected

◆ SetClip()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::SetClip ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath clipPath)
overridevirtual

Adds the specified path to the current clip path.

Parameters
clipPathThe clip path to be added.

Reimplemented from Aspose::Page::Device.

◆ SetHyperlinkTarget() [1/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::SetHyperlinkTarget ( System::String  targetUri)
overridevirtual

Set the hyperlink with an external URI as its target.

Parameters
targetUriThe target external URI.

Implements Aspose::Page::IInteractiveDevice.

◆ SetHyperlinkTarget() [2/2]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::SetHyperlinkTarget ( int32_t  targetPageNumber)
overridevirtual

Set the hyperlink with a page number as its target.

Parameters
targetPageNumberThe target page number.

Implements Aspose::Page::IInteractiveDevice.

◆ SetTransform()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::SetTransform ( System::SharedPtr< System::Drawing::Drawing2D::Matrix transform)
overridevirtual

Sets the current transformation matrix.

Parameters
transformThe new transformation matrix.

Reimplemented from Aspose::Page::Device.

◆ Shear()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::Shear ( double  shx,
double  shy 
)
overridevirtual

Applies the specified shear vector to the current transformation matrix.

Parameters
shxThe x shear factor.
shyThe y shear factor.

Reimplemented from Aspose::Page::Device.

◆ StartDocument()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::StartDocument ( )
overridevirtual

Starts the document.

Reimplemented from Aspose::Page::Device.

◆ ToDrBrush()

System::SharedPtr<Aspose::Foundation::Drawing::DrBrush> Aspose::Page::XPS::Presentation::Aps::ApsDevice::ToDrBrush ( System::SharedPtr< System::Drawing::Brush brush,
float  opacity,
System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath path = nullptr,
float  penWidth = 0.f 
)
protected

◆ ToDrPen()

System::SharedPtr<Aspose::Foundation::Drawing::DrPen> Aspose::Page::XPS::Presentation::Aps::ApsDevice::ToDrPen ( System::SharedPtr< System::Drawing::Pen pen,
System::SharedPtr< System::Drawing::Brush brush,
float  opacity,
System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath path 
)
protected

◆ ToString()

ASPOSE_PAGE_SHARED_API System::String Aspose::Page::XPS::Presentation::Aps::ApsDevice::ToString ( ) const
overridevirtual

Returns the name of device type.

Returns
Type name.

Reimplemented from Aspose::Page::Device.

◆ Transform()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::Transform ( System::SharedPtr< System::Drawing::Drawing2D::Matrix transform)
overridevirtual

Multiplies the current transformation matrix by the specified Matrix.

Parameters
transformThe matrix by which the current transformation matrix is to be multiplied.

Reimplemented from Aspose::Page::Device.

◆ Translate()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::Translate ( double  x,
double  y 
)
overridevirtual

Applies the specified translation vector to the current transformation matrix.

Parameters
xThe x offset.
yThe y offset.

Reimplemented from Aspose::Page::Device.

◆ UpdatePageParameters()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::UpdatePageParameters ( System::SharedPtr< IMultiPageDevice device)
overridevirtual

Updates the current page parameters.

Parameters
deviceThe multipage device.

Implements Aspose::Page::IMultiPageDevice.

◆ WriteCap()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::WriteCap ( System::Drawing::Drawing2D::LineCap  cap)
overrideprotectedvirtual

Writes the line cap.

Parameters
capThe line cap.

Reimplemented from Aspose::Page::Device.

◆ WriteClip()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::WriteClip ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath clipPath)
protectedvirtual

Converts the specified clip path to APS format.

Parameters
clipPathThe clip path.

◆ WriteDash()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::WriteDash ( System::ArrayPtr< double >  dash,
double  phase,
System::Drawing::Drawing2D::DashCap  dashCap 
)
overrideprotectedvirtual

Writes dash parameters.

Parameters
dashThe dash/gap array.
phaseThe stroke phase.
dashCapThe dash cap.

Reimplemented from Aspose::Page::Device.

◆ WriteGraphicsRestore()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::WriteGraphicsRestore ( )
protectedvirtual

Finalizes this device instance graphics state, i.e. switches APS composing context to the ApsCanvas of the level higher then this device's graphics state ApsCanvas.

◆ WriteGraphicsSave()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::WriteGraphicsSave ( )
protectedvirtual

Writes this device graphics state, i.e. creates ApsCanvas instance(s) with corresponding RenderTransform and Clip properties.

◆ WriteHyperlink()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::WriteHyperlink ( System::SharedPtr< Aspose::Rendering::ApsHyperlink >  hyperlink)
protectedvirtual

Writes the hyperlink.

Parameters
hyperlinkThe APS hyperlink.

◆ WriteJoin()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::WriteJoin ( System::Drawing::Drawing2D::LineJoin  join)
overrideprotectedvirtual

Writes the line join.

Parameters
joinThe line join.

Reimplemented from Aspose::Page::Device.

◆ WriteMiterLimit()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::WriteMiterLimit ( float  limit)
overrideprotectedvirtual

Writes the miter limit.

Parameters
limitThe miter limit.

Reimplemented from Aspose::Page::Device.

◆ WriteOutlineItem()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::WriteOutlineItem ( System::SharedPtr< Aspose::Rendering::ApsOutlineItem >  outlineItem)
protectedvirtual

◆ WritePaint() [1/4]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::WritePaint ( System::SharedPtr< System::Drawing::SolidBrush brush)
overrideprotectedvirtual

Writes the stroke brush.

Parameters
brushThe SolidBrush instance.

Reimplemented from Aspose::Page::Device.

◆ WritePaint() [2/4]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::WritePaint ( System::SharedPtr< System::Drawing::Drawing2D::LinearGradientBrush brush)
overrideprotectedvirtual

Writes the stroke brush.

Parameters
brushThe LinearGradientBrush instance.

Reimplemented from Aspose::Page::Device.

◆ WritePaint() [3/4]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::WritePaint ( System::SharedPtr< System::Drawing::TextureBrush brush)
overrideprotectedvirtual

Writes the stroke brush.

Parameters
brushThe TextureBrush instance.

Reimplemented from Aspose::Page::Device.

◆ WritePaint() [4/4]

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::WritePaint ( System::SharedPtr< System::Drawing::Brush brush)
overrideprotectedvirtual

Writes the stroke brush.

Parameters
brushThe brush.

Reimplemented from Aspose::Page::Device.

◆ WriteTransform()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::WriteTransform ( System::SharedPtr< System::Drawing::Drawing2D::Matrix transform)
protectedvirtual

Converts the specified transformation matrix to APS format.

Parameters
transformThe transformation matrix to write.

◆ WriteWidth()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Aps::ApsDevice::WriteWidth ( float  width)
overrideprotectedvirtual

Writes the line width.

Parameters
widthThe line width.

Reimplemented from Aspose::Page::Device.