This class encapsulates rendering of document to abstract device. Rendering of the document is performed page by page. More...

Inherits System::Object.

Inherited by Aspose::Page::EPS::Device::ApsDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, and Aspose::Page::XPS::Presentation::Ps::PsDevice.

Public Member Functions

virtual ASPOSE_PAGE_SHARED_API void set_SaveOptions (System::SharedPtr< Aspose::Page::SaveOptions > value)
 Options for managing rendering process. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< System::Object > > > get_Properties ()
 Device properties including metadata. More...
 
virtual 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< BaseTrFontget_Font ()
 Returns or specifies current font. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_Font (System::SharedPtr< BaseTrFont > 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 Device (System::Drawing::Size pageSize)
 Initializes Device with a size of a page. More...
 
virtual ASPOSE_PAGE_SHARED_API void ReNew ()
 Reset device to initial state for whole document. Used for reseting output stream. 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 System::SharedPtr< System::Drawing::Drawing2D::MatrixGetPropertyMatrix (System::String key)
 Gets a value of matrix property. More...
 
ASPOSE_PAGE_SHARED_API bool IsProperty (System::String key)
 Gets a value of boolean property. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< DeviceCreate ()
 Creates a copy of this device. More...
 
virtual ASPOSE_PAGE_SHARED_API void SetTransform (System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform)
 Specifies current transform. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Drawing2D::MatrixGetTransform ()
 Gets current transform. More...
 
virtual ASPOSE_PAGE_SHARED_API void Transform (System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform)
 Transforms the current transformation matrix. Calls writeTransform(Transform) More...
 
virtual ASPOSE_PAGE_SHARED_API void Translate (double x, double y)
 Translates the current transformation matrix. Calls writeTransform(Transform). More...
 
virtual ASPOSE_PAGE_SHARED_API void Rotate (double theta)
 Rotate the current transformation matrix. Calls writeTransform(Transform). Rotating with a positive angle theta rotates points on the positive x axis toward the positive y axis. 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 Scale (double x, double y)
 Scales the current transformation matrix. Calls writeTransform(Transform). More...
 
virtual ASPOSE_PAGE_SHARED_API void Shear (double shx, double shy)
 Shears the current transformation matrix. Calls writeTransform(Transform). More...
 
virtual ASPOSE_PAGE_SHARED_API void InitClip ()
 Initializes clip of the device. More...
 
virtual ASPOSE_PAGE_SHARED_API void SetClip (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > clipPath)
 Specifies the clip of the device. More...
 
virtual ASPOSE_PAGE_SHARED_API void Draw (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > path)
 Draws a path. More...
 
virtual ASPOSE_PAGE_SHARED_API void Fill (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > path)
 Fills a path. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawString (System::String str, double x, double y)
 Draws a string at given point. 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 StartDocument ()
 Makes necessary preparation of device before start rendering of document. More...
 
virtual ASPOSE_PAGE_SHARED_API void EndDocument ()
 Makes necessary preparation of device after the document has been rendered. More...
 
virtual ASPOSE_PAGE_SHARED_API void Dispose ()
 Disposes the device. More...
 
virtual ASPOSE_PAGE_SHARED_API void Reset ()
 Reset the device to initial state for a page. 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...
 
ASPOSE_PAGE_SHARED_API System::String ToString () const override
 Returns the name of device type. 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)
 

Static Public Attributes

static ASPOSE_PAGE_SHARED_API System::String VERSION
 Current device version. More...
 

Protected Member Functions

bool get_IsMainDocument () const
 
bool get_IsLicensed ()
 Indicates whether this instance of Aspose.Page library is licensed. More...
 
ASPOSE_PAGE_SHARED_API Device ()
 Initializes new instance of Device. More...
 
virtual ASPOSE_PAGE_SHARED_API void ReNewForMerge (bool mainDocument)
 
ASPOSE_PAGE_SHARED_API void InitGS ()
 
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...
 
void PrintProperties ()
 
virtual ASPOSE_PAGE_SHARED_API void ApplyGraphicState (System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform, System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > clip)
 
virtual ASPOSE_PAGE_SHARED_API void DrawString (System::String str, double x, double y, double width, System::SharedPtr< Aspose::Rendering::ApsGlyphsIndices > indices, bool isRtl=false)
 
virtual ASPOSE_PAGE_SHARED_API void DrawBitmapGlyph (System::SharedPtr< System::Object > charSelector, System::String fontName, System::SharedPtr< System::Drawing::Bitmap > bmpGlyph, System::SharedPtr< System::Drawing::Drawing2D::Matrix > at)
 
virtual ASPOSE_PAGE_SHARED_API void Reset (bool zeroPageNumbers)
 
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 WriteWidth (float width)
 Writes out the width of the 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 WriteCap (System::Drawing::Drawing2D::LineCap cap)
 Writes out the cap of the stroke. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteJoin (System::Drawing::Drawing2D::LineJoin join)
 Writes out the join of the stroke. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteMiterLimit (float limit)
 Writes out the miter limit of the stroke. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteDash (System::ArrayPtr< double > dash, double phase, System::Drawing::Drawing2D::DashCap dashCap, float width)
 Writes out the dash of the stroke. More...
 
virtual ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::SolidBrush > color)
 Writes out paint as the given color. More...
 
virtual ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::Drawing2D::LinearGradientBrush > paint)
 Writes out paint as the given gradient. 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 WritePaint (System::SharedPtr< System::Drawing::TextureBrush > paint)
 Writes out paint as the given texture. More...
 
virtual ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::Drawing2D::HatchBrush > paint)
 Writes out paint as the given hatch pattern. More...
 
virtual ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::Brush > paint)
 Writes out paint. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteString (System::SharedPtr< BaseTrFont > 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 ()
 
virtual ASPOSE_PAGE_SHARED_API void SetPlugin (Plugins::Plugin plugin)
 

Protected Attributes

Plugins::Plugin _usedByPlugin
 
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< BaseTrFontfont
 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
 

Static Protected Attributes

static System::Drawing::Size DefaultSize
 

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...
 

Detailed Description

This class encapsulates rendering of document to abstract device. Rendering of the document is performed page by page.

Constructor & Destructor Documentation

◆ Device() [1/3]

ASPOSE_PAGE_SHARED_API Aspose::Page::Device::Device ( System::Drawing::Size  pageSize)

Initializes Device with a size of a page.

Parameters
pageSizePage size.

◆ Device() [2/3]

ASPOSE_PAGE_SHARED_API Aspose::Page::Device::Device ( )
protected

Initializes new instance of Device.

◆ Device() [3/3]

ASPOSE_PAGE_SHARED_API Aspose::Page::Device::Device ( System::SharedPtr< Device device)
protected

Clone constructor. Initializes this device with existing device.

Parameters
deviceExisting device.

Member Function Documentation

◆ ApplyGraphicState()

◆ ClearRect()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::ClearRect ( float  x,
float  y,
float  width,
float  height 
)
protectedvirtual

Clears rectangle by painting it with the backgroundColor.

Parameters
xX coordinate of upper left corner of the rectangle.
yY coordinate of upper left corner of the rectangle.
widthA width of the rectangle.
heightA height of the rectangle.

◆ Create()

◆ CreateShape() [1/2]

virtual ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Drawing::Drawing2D::GraphicsPath> Aspose::Page::Device::CreateShape ( System::ArrayPtr< int32_t >  xPoints,
System::ArrayPtr< int32_t >  yPoints,
int32_t  nPoints,
bool  close 
)
protectedvirtual

Creates a polyline/polygon shape from a set of points.

Parameters
xPointsX coordinates of points.
yPointsY coordinate of points.
nPointsThe number of points.
closeIndicates whether shape is closed
Returns
The shape.

◆ CreateShape() [2/2]

ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Drawing::Drawing2D::GraphicsPath> Aspose::Page::Device::CreateShape ( System::ArrayPtr< double >  xPoints,
System::ArrayPtr< double >  yPoints,
int32_t  nPoints,
bool  close 
)
protected

Creates a polyline/polygon shape from a set of points.

Parameters
xPointsX coordinates of points.
yPointsY coordinate of points.
nPointsThe number of points.
closeIndicates whether shape is closed
Returns
The shape.

◆ Dispose()

◆ Draw()

◆ DrawArc()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::DrawArc ( double  x,
double  y,
double  width,
double  height,
double  startAngle,
double  arcAngle 
)
virtual

Draws an arc.

Parameters
xX coordinate of center of the arc.
yY coordinate of center of the arc.
widthA width of circumscribed rectangle.
heightA height of circumscribed rectangle.
startAngleA start angle of the arc.
arcAngleAn angle of the arc.

◆ DrawBitmapGlyph()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::DrawBitmapGlyph ( System::SharedPtr< System::Object charSelector,
System::String  fontName,
System::SharedPtr< System::Drawing::Bitmap bmpGlyph,
System::SharedPtr< System::Drawing::Drawing2D::Matrix at 
)
protectedvirtual

◆ DrawImage()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::DrawImage ( System::SharedPtr< System::Drawing::Bitmap image,
System::SharedPtr< System::Drawing::Drawing2D::Matrix transform,
System::Drawing::Color  bkg 
)
virtual

Draws an image with assigned transform and background.

Parameters
imageAn image to be drawn.
transformA transform.
bkgA background color.

Reimplemented in Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::EPS::Device::PdfDevice, and Aspose::Page::EPS::Device::ApsDevice.

◆ DrawLine()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::DrawLine ( double  x1,
double  y1,
double  x2,
double  y2 
)
virtual

Draws a line segment.

Parameters
x1X coordinate of the beginning of segment.
y1Y coordinate of the beginning of segment.
x2X coordinate of the end of segment.
y2Y coordinate of the end of segment.

◆ DrawOval()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::DrawOval ( double  x,
double  y,
double  width,
double  height 
)
virtual

Draws an oval.

Parameters
xX coordinate of center of the oval.
yY coordinate of center of the oval.
widthA width of circumscribed rectangle.
heightA height of circumscribed rectangle.

◆ DrawPolygon() [1/2]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::DrawPolygon ( System::ArrayPtr< int32_t >  xPoints,
System::ArrayPtr< int32_t >  yPoints,
int32_t  nPoints 
)
virtual

Draws a polygon.

Parameters
xPointsX coordinates of points.
yPointsY coordinate of points.
nPointsThe number of points.

◆ DrawPolygon() [2/2]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::DrawPolygon ( System::ArrayPtr< double >  xPoints,
System::ArrayPtr< double >  yPoints,
int32_t  nPoints 
)
virtual

Draws a poligone.

Parameters
xPointsX coordinates of points.
yPointsY coordinate of points.
nPointsThe number of points.

◆ DrawPolyline() [1/2]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::DrawPolyline ( System::ArrayPtr< int32_t >  xPoints,
System::ArrayPtr< int32_t >  yPoints,
int32_t  nPoints 
)
virtual

Draws a polyline.

Parameters
xPointsX coordinates of points.
yPointsY coordinate of points.
nPointsThe number of points.

◆ DrawPolyline() [2/2]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::DrawPolyline ( System::ArrayPtr< double >  xPoints,
System::ArrayPtr< double >  yPoints,
int32_t  nPoints 
)
virtual

Draws a polyline.

Parameters
xPointsX coordinates of points.
yPointsY coordinate of points.
nPointsThe number of points.

◆ DrawRect()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::DrawRect ( double  x,
double  y,
double  width,
double  height 
)
virtual

Draws a rectangle.

Parameters
xX coordinate of upper left corner of the rectangle.
yY coordinate of upper left corner of the rectangle.
widthA width of the rectangle.
heightA height of the rectangle.

◆ DrawRoundRect()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::DrawRoundRect ( double  x,
double  y,
double  width,
double  height,
double  arcWidth,
double  arcHeight 
)
virtual

Draws a round rectangle.

Parameters
xX coordinate of upper left corner of the rectangle.
yY coordinate of upper left corner of the rectangle.
widthA width of the rectangle.
heightA height of the rectangle.
arcWidthA width of circumscribed rectangle of the arc that rounds an angle of the rectangle.
arcHeightA height of circumscribed rectangle of the arc that rounds an angle of the rectangle.

◆ DrawString() [1/2]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::DrawString ( System::String  str,
double  x,
double  y 
)
virtual

◆ DrawString() [2/2]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::DrawString ( System::String  str,
double  x,
double  y,
double  width,
System::SharedPtr< Aspose::Rendering::ApsGlyphsIndices >  indices,
bool  isRtl = false 
)
protectedvirtual

◆ EndDocument()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::EndDocument ( )
virtual

◆ Fill()

◆ FillArc()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::FillArc ( double  x,
double  y,
double  width,
double  height,
double  startAngle,
double  arcAngle 
)
virtual

Fills an arc.

Parameters
xX coordinate of center of the arc.
yY coordinate of center of the arc.
widthA width of circumscribed rectangle.
heightA height of circumscribed rectangle.
startAngleA start angle of the arc.
arcAngleAn angle of the arc.

◆ FillOval()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::FillOval ( double  x,
double  y,
double  width,
double  height 
)
virtual

Fills an oval.

Parameters
xX coordinate of center of the oval.
yY coordinate of center of the oval.
widthA width of circumscribed rectangle.
heightA height of circumscribed rectangle.

◆ FillPolygon() [1/2]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::FillPolygon ( System::ArrayPtr< int32_t >  xPoints,
System::ArrayPtr< int32_t >  yPoints,
int32_t  nPoints 
)
virtual

Fills a poligone.

Parameters
xPointsX coordinates of points.
yPointsY coordinate of points.
nPointsThe number of points.

◆ FillPolygon() [2/2]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::FillPolygon ( System::ArrayPtr< double >  xPoints,
System::ArrayPtr< double >  yPoints,
int32_t  nPoints 
)
virtual

Fills a poligone.

Parameters
xPointsX coordinates of points.
yPointsY coordinate of points.
nPointsThe number of points.

◆ FillRect()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::FillRect ( double  x,
double  y,
double  width,
double  height 
)
virtual

Fills a rectangle.

Parameters
xX coordinate of upper left corner of the rectangle.
yY coordinate of upper left corner of the rectangle.
widthA width of the rectangle.
heightA height of the rectangle.

◆ FillRoundRect()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::FillRoundRect ( double  x,
double  y,
double  width,
double  height,
double  arcWidth,
double  arcHeight 
)
virtual

Fills a round rectangle.

Parameters
xX coordinate of upper left corner of the rectangle.
yY coordinate of upper left corner of the rectangle.
widthA width of the rectangle.
heightA height of the rectangle.
arcWidthA width of circumscribed rectangle of the arc that rounds an angle of the rectangle.
arcHeightA height of circumscribed rectangle of the arc that rounds an angle of the rectangle.

◆ get_Background()

virtual ASPOSE_PAGE_SHARED_API System::Drawing::Color Aspose::Page::Device::get_Background ( )
virtual

◆ get_CharTM()

virtual ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Drawing::Drawing2D::Matrix> Aspose::Page::Device::get_CharTM ( )
virtual

Returns or specifies current characters transform.

Reimplemented in Aspose::Page::EPS::Device::ImageDevice.

◆ get_Creator()

ASPOSE_PAGE_SHARED_API System::String Aspose::Page::Device::get_Creator ( ) const

Returns or specifies creator of resulting device output.

◆ get_Font()

virtual ASPOSE_PAGE_SHARED_API System::SharedPtr<BaseTrFont> Aspose::Page::Device::get_Font ( )
virtual

◆ get_IsDirectRGB()

virtual ASPOSE_PAGE_SHARED_API bool Aspose::Page::Device::get_IsDirectRGB ( )
virtual

Indicates whether device uses direct RGB mode, that is RGB.

Returns
True if direct RGB mode and false otherwise, that is BGR.

Reimplemented in Aspose::Page::EPS::Device::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.

◆ get_IsLicensed()

bool Aspose::Page::Device::get_IsLicensed ( )
protected

Indicates whether this instance of Aspose.Page library is licensed.

◆ get_IsMainDocument()

bool Aspose::Page::Device::get_IsMainDocument ( ) const
protected

◆ get_Opacity()

virtual ASPOSE_PAGE_SHARED_API float Aspose::Page::Device::get_Opacity ( )
virtual

◆ get_OpacityMask()

virtual ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Drawing::Brush> Aspose::Page::Device::get_OpacityMask ( )
virtual

◆ get_Paint()

◆ get_Properties()

virtual ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Collections::Generic::Dictionary<System::String, System::SharedPtr<System::Object> > > Aspose::Page::Device::get_Properties ( )
virtual

Device properties including metadata.

Reimplemented in Aspose::Page::EPS::Device::ImageDevice.

◆ get_Size()

virtual ASPOSE_PAGE_SHARED_API System::Drawing::Size Aspose::Page::Device::get_Size ( )
virtual

◆ get_Stroke()

virtual ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Drawing::Pen> Aspose::Page::Device::get_Stroke ( )
virtual

◆ get_TextRenderingMode()

virtual ASPOSE_PAGE_SHARED_API Aspose::Page::TextRenderingMode Aspose::Page::Device::get_TextRenderingMode ( )
virtual

Returns or specifies current text rendering mode.

Reimplemented in Aspose::Page::EPS::Device::ImageDevice.

◆ get_TextStrokeWidth()

virtual ASPOSE_PAGE_SHARED_API float Aspose::Page::Device::get_TextStrokeWidth ( )
virtual

Returns or specifies current text stroke width.

Reimplemented in Aspose::Page::EPS::Device::ImageDevice.

◆ GetFinalWrittenLength()

◆ GetProperty()

ASPOSE_PAGE_SHARED_API System::String Aspose::Page::Device::GetProperty ( System::String  key)

Gets a value of string property.

Parameters
keyThe name of property.
Returns
The property value.

◆ GetPropertyColor()

ASPOSE_PAGE_SHARED_API System::Drawing::Color Aspose::Page::Device::GetPropertyColor ( System::String  key)

Gets a value of color property.

Parameters
keyThe name of property.
Returns
The property value.

◆ GetPropertyDouble()

ASPOSE_PAGE_SHARED_API double Aspose::Page::Device::GetPropertyDouble ( System::String  key)

Gets a value of double property.

Parameters
keyThe name of property.
Returns
The property value.

◆ GetPropertyInt()

ASPOSE_PAGE_SHARED_API int32_t Aspose::Page::Device::GetPropertyInt ( System::String  key)

Gets a value of integer property.

Parameters
keyThe name of property.
Returns
The property value.

◆ GetPropertyMargins()

ASPOSE_PAGE_SHARED_API System::SharedPtr<Margins> Aspose::Page::Device::GetPropertyMargins ( System::String  key)

Gets a value of margin property.

Parameters
keyThe name of property.
Returns
The property value.

◆ GetPropertyMatrix()

ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Drawing::Drawing2D::Matrix> Aspose::Page::Device::GetPropertyMatrix ( System::String  key)

Gets a value of matrix property.

Parameters
keyThe name of property.
Returns
The property value.

◆ GetPropertyRectangle()

ASPOSE_PAGE_SHARED_API System::Drawing::RectangleF Aspose::Page::Device::GetPropertyRectangle ( System::String  key)

Gets a value of rectangle property.

Parameters
keyThe name of property.
Returns
The property value.

◆ GetPropertySize()

ASPOSE_PAGE_SHARED_API System::Drawing::Size Aspose::Page::Device::GetPropertySize ( System::String  key)

Gets a value of size property.

Parameters
keyThe name of property.
Returns
The property value.

◆ GetSaveOptions()

ASPOSE_PAGE_SHARED_API System::SharedPtr<Aspose::Page::SaveOptions> Aspose::Page::Device::GetSaveOptions ( )
protected

◆ GetTransform()

◆ GetVentureLicense()

virtual ASPOSE_PAGE_SHARED_API System::SharedPtr<LicenseManagement::VentureLicense> Aspose::Page::Device::GetVentureLicense ( )
protectedvirtual

◆ HandleException()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::HandleException ( System::Exception  exception)
protectedvirtual

Handles an exception which has been caught. Dispatches exception to writeWarning for UnsupportedOperationExceptions and writeError for others

Parameters
exceptionThe exception to be handled

◆ InitClip()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::InitClip ( )
virtual

◆ InitGS()

ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::InitGS ( )
protected

◆ InitProperties()

ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::InitProperties ( System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< System::Object >>>  defaults)
protected

Initializes default properties of device with values.

Parameters
defaultsDefault properties with values.

◆ IsProperty()

ASPOSE_PAGE_SHARED_API bool Aspose::Page::Device::IsProperty ( System::String  key)

Gets a value of boolean property.

Parameters
keyThe name of property.
Returns
The property value.

◆ PrintProperties()

void Aspose::Page::Device::PrintProperties ( )
protected

◆ ReNew()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::ReNew ( )
virtual

◆ ReNewForMerge()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::ReNewForMerge ( bool  mainDocument)
protectedvirtual

◆ Reset() [1/2]

◆ Reset() [2/2]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::Reset ( bool  zeroPageNumbers)
protectedvirtual

◆ Rotate() [1/2]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::Rotate ( double  theta)
virtual

Rotate the current transformation matrix. Calls writeTransform(Transform). Rotating with a positive angle theta rotates points on the positive x axis toward the positive y axis.

Parameters
thetaAngle in radians over which to rotate.

Reimplemented in Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Ps::PsDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.

◆ Rotate() [2/2]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::Rotate ( double  theta,
double  x,
double  y 
)
virtual

Rotate the current transformation matrix around a point.

Parameters
thetaAn angle of rotation in radians.
xX coordinate of point.
yY coordinate of point.

◆ Scale()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::Scale ( double  x,
double  y 
)
virtual

◆ set_Background()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::set_Background ( System::Drawing::Color  value)
virtual

◆ set_CharTM()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::set_CharTM ( System::SharedPtr< System::Drawing::Drawing2D::Matrix value)
virtual

Returns or specifies current characters transform.

Reimplemented in Aspose::Page::EPS::Device::ImageDevice.

◆ set_Creator()

ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::set_Creator ( System::String  value)

Returns or specifies creator of resulting device output.

◆ set_Font()

◆ set_Opacity()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::set_Opacity ( float  value)
virtual

◆ set_OpacityMask()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::set_OpacityMask ( System::SharedPtr< System::Drawing::Brush value)
virtual

◆ set_Paint()

◆ set_Properties()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::set_Properties ( System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< System::Object >>>  value)
virtual

Device properties including metadata.

Reimplemented in Aspose::Page::EPS::Device::ImageDevice.

◆ set_SaveOptions()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::set_SaveOptions ( System::SharedPtr< Aspose::Page::SaveOptions value)
virtual

◆ set_Size()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::set_Size ( System::Drawing::Size  value)
virtual

◆ set_Stroke()

◆ set_TextRenderingMode()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::set_TextRenderingMode ( Aspose::Page::TextRenderingMode  value)
virtual

Returns or specifies current text rendering mode.

Reimplemented in Aspose::Page::EPS::Device::ImageDevice.

◆ set_TextStrokeWidth()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::set_TextStrokeWidth ( float  value)
virtual

Returns or specifies current text stroke width.

Reimplemented in Aspose::Page::EPS::Device::ImageDevice.

◆ SetClip()

◆ SetPlugin()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::SetPlugin ( Plugins::Plugin  plugin)
protectedvirtual

◆ SetTransform()

◆ SetVentureLicense()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::SetVentureLicense ( System::SharedPtr< LicenseManagement::VentureLicense >  license)
protectedvirtual

◆ Shear()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::Shear ( double  shx,
double  shy 
)
virtual

◆ StartDocument()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::StartDocument ( )
virtual

◆ ToString()

ASPOSE_PAGE_SHARED_API System::String Aspose::Page::Device::ToString ( ) const
overridevirtual

Returns the name of device type.

Returns
Type name.

Reimplemented from System::Object.

Reimplemented in Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::EPS::Device::PdfDevice, and Aspose::Page::EPS::Device::ApsDevice.

◆ Transform()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::Transform ( System::SharedPtr< System::Drawing::Drawing2D::Matrix transform)
virtual

◆ Translate()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::Translate ( double  x,
double  y 
)
virtual

Translates the current transformation matrix. Calls writeTransform(Transform).

Parameters
xTranslation in X axis.
yTranslation in Y axis.

Reimplemented in Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Ps::PsDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.

◆ WriteBackground()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::WriteBackground ( )
protectedvirtual

◆ WriteCap()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::WriteCap ( System::Drawing::Drawing2D::LineCap  cap)
protectedvirtual

◆ WriteComment()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::WriteComment ( System::String  comment)
virtual

Writes a comment.

Parameters
commentA comment to be written.

Reimplemented in Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::EPS::Device::PdfDevice, and Aspose::Page::EPS::Device::ApsDevice.

◆ WriteDash()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::WriteDash ( System::ArrayPtr< double >  dash,
double  phase,
System::Drawing::Drawing2D::DashCap  dashCap,
float  width 
)
protectedvirtual

Writes out the dash of the stroke.

Parameters
dashThe dash pattern or an empty array if line is solid.
phaseThe phase of the dash pattern.
dashCapThe dash cap of the dash pattern.

Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Ps::PsDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.

◆ WriteError()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::WriteError ( System::Exception  error)
protectedvirtual

Writes out an error, by default the stack trace is printed.

Parameters
errorThe error to be reported

◆ WriteJoin()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::WriteJoin ( System::Drawing::Drawing2D::LineJoin  join)
protectedvirtual

◆ WriteMiterLimit()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::WriteMiterLimit ( float  limit)
protectedvirtual

◆ WritePaint() [1/7]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::WritePaint ( System::SharedPtr< System::Drawing::SolidBrush color)
protectedvirtual

◆ WritePaint() [2/7]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::WritePaint ( System::SharedPtr< System::Drawing::Drawing2D::LinearGradientBrush paint)
protectedvirtual

◆ WritePaint() [3/7]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::WritePaint ( System::SharedPtr< System::Drawing::Drawing2D::PathGradientBrush paint)
protectedvirtual

Writes out paint as the given gradient.

Parameters
paintThe paint to be written

◆ WritePaint() [4/7]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::WritePaint ( System::SharedPtr< EPS::GradientBrush paint)
protectedvirtual

Writes out paint as the given gradient.

Parameters
paintThe paint to be written

◆ WritePaint() [5/7]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::WritePaint ( System::SharedPtr< System::Drawing::TextureBrush paint)
protectedvirtual

◆ WritePaint() [6/7]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::WritePaint ( System::SharedPtr< System::Drawing::Drawing2D::HatchBrush paint)
protectedvirtual

Writes out paint as the given hatch pattern.

Parameters
paintThe paint to be written

◆ WritePaint() [7/7]

◆ WriteString()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::WriteString ( System::SharedPtr< BaseTrFont font,
System::String  str 
)
protectedvirtual

Writes out string with specified font.

Parameters
fontSpecified font.
strThe string.

Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.

◆ WriteStroke()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::WriteStroke ( System::SharedPtr< System::Drawing::Pen stroke)
protectedvirtual

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.

Parameters
strokeA stroke to be written.

◆ WriteWarning() [1/2]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::WriteWarning ( System::Exception  warning)
protectedvirtual

Writes out a warning, by default to System.err.

Parameters
warningThe warning to be written

◆ WriteWarning() [2/2]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::WriteWarning ( System::String  warning)
protectedvirtual

Writes out a warning, by default to System.err.

Parameters
warningThe warning to be written

Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.

◆ WriteWidth()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::Device::WriteWidth ( float  width)
protectedvirtual

Member Data Documentation

◆ _usedByPlugin

Plugins::Plugin Aspose::Page::Device::_usedByPlugin
protected

◆ charTM

System::SharedPtr<System::Drawing::Drawing2D::Matrix> Aspose::Page::Device::charTM
protected

Current character transform.

◆ creator

System::String Aspose::Page::Device::creator
protected

Creator of resulting device output.

◆ DefaultSize

System::Drawing::Size Aspose::Page::Device::DefaultSize
staticprotected

◆ font

System::SharedPtr<BaseTrFont> Aspose::Page::Device::font
protected

Current font.

◆ mainDocument

bool Aspose::Page::Device::mainDocument
protected

◆ opacity

float Aspose::Page::Device::opacity
protected

Current opacity.

◆ opacityMask

System::SharedPtr<System::Drawing::Brush> Aspose::Page::Device::opacityMask
protected

Current opacity mask.

◆ paint

System::SharedPtr<System::Drawing::Brush> Aspose::Page::Device::paint
protected

Current paint.

◆ saveOptions

System::SharedPtr<Aspose::Page::SaveOptions> Aspose::Page::Device::saveOptions
protected

Options for managing rendering process.

◆ size

System::Drawing::Size Aspose::Page::Device::size
protected

Size of the page.

◆ stroke

System::SharedPtr<System::Drawing::Pen> Aspose::Page::Device::stroke
protected

Current stroke.

◆ textRenderingMode

Aspose::Page::TextRenderingMode Aspose::Page::Device::textRenderingMode
protected

Current text rendering mode.

◆ textStrokeWidth

float Aspose::Page::Device::textStrokeWidth
protected

Current text stroke width.

◆ VERSION

ASPOSE_PAGE_SHARED_API System::String Aspose::Page::Device::VERSION
static

Current device version.