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, and Aspose::Page::XPS::Presentation::Pdf::PdfDevice.
Public Member Functions | |
ASPOSE_PAGE_SHARED_API | Device (System::Drawing::Size pageSize) |
Initializes Device with a size of a page. 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... | |
Object & | operator= (Object const &x) |
Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object * | SharedRefAdded () |
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 TypeInfo & | GetType () 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 | |
bool | get_IsMainDocument () const |
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... | |
System::String | get_Creator () const |
Returns or specifies creator of resulting device output. More... | |
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::Pen > | get_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::Brush > | get_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::Brush > | get_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< BaseTrFont > | get_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::Matrix > | get_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... | |
bool | get_IsLicensed () |
Indicates whether this instance of Aspose.Page library is licensed. More... | |
Device () | |
Initializes new instance of Device. More... | |
virtual ASPOSE_PAGE_SHARED_API void | ReNew () |
Reset device to initial state for whole document. Used for reseting output stream. More... | |
virtual ASPOSE_PAGE_SHARED_API void | ReNewForMerge (bool mainDocument) |
void | InitGS () |
Device (System::SharedPtr< Device > device) | |
Clone constructor. Initializes this device with existing device. More... | |
System::SharedPtr< Aspose::Page::SaveOptions > | GetSaveOptions () |
void | InitProperties (System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< System::Object >>> defaults) |
Initializes default properties of device with values. More... | |
System::String | GetProperty (System::String key) |
Gets a value of string property. More... | |
System::Drawing::Color | GetPropertyColor (System::String key) |
Gets a value of color property. More... | |
System::Drawing::RectangleF | GetPropertyRectangle (System::String key) |
Gets a value of rectangle property. More... | |
System::SharedPtr< Margins > | GetPropertyMargins (System::String key) |
Gets a value of margin property. More... | |
System::Drawing::Size | GetPropertySize (System::String key) |
Gets a value of size property. More... | |
int32_t | GetPropertyInt (System::String key) |
Gets a value of integer property. More... | |
double | GetPropertyDouble (System::String key) |
Gets a value of double property. More... | |
System::SharedPtr< System::Drawing::Drawing2D::Matrix > | GetPropertyMatrix (System::String key) |
Gets a value of matrix property. More... | |
bool | IsProperty (System::String key) |
Gets a value of boolean property. More... | |
void | PrintProperties () |
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< Device > | Create () |
Creates a copy of this device. More... | |
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 | SetTransform (System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform) |
Specifies current transform. More... | |
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Drawing2D::Matrix > | GetTransform () |
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 | 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 | 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 | 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 | 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 | Reset (bool zeroPageNumbers) |
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... | |
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > | CreateShape (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... | |
System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > | CreateShape (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::SaveOptions > | saveOptions |
Options for managing rendering process. More... | |
System::Drawing::Size | size |
Size of the page. More... | |
System::Drawing::Color | background |
Current background of the page. More... | |
float | opacity |
Current opacity. More... | |
System::SharedPtr< System::Drawing::Pen > | stroke |
Current stroke. More... | |
System::SharedPtr< System::Drawing::Brush > | paint |
Current paint. More... | |
System::SharedPtr< System::Drawing::Brush > | opacityMask |
Current opacity mask. More... | |
System::SharedPtr< BaseTrFont > | font |
Current font. More... | |
System::SharedPtr< System::Drawing::Drawing2D::Matrix > | charTM |
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 |
static System::String | VERSION |
Current device version. More... | |
Additional Inherited Members | |
Public Types inherited from System::Object | |
typedef SmartPtr< Object > | ptr |
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 TypeInfo & | Type () |
Implements C# typeof(System.Object) construct. More... | |
This class encapsulates rendering of document to abstract device. Rendering of the document is performed page by page.
ASPOSE_PAGE_SHARED_API Aspose::Page::Device::Device | ( | System::Drawing::Size | pageSize | ) |
|
protected |
Initializes new instance of Device.
|
protected |
Clone constructor. Initializes this device with existing device.
device | Existing device. |
|
protectedvirtual |
|
protectedvirtual |
Clears rectangle by painting it with the backgroundColor.
x | X coordinate of upper left corner of the rectangle. |
y | Y coordinate of upper left corner of the rectangle. |
width | A width of the rectangle. |
height | A height of the rectangle. |
|
protectedvirtual |
Creates a copy of this device.
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Creates a polyline/polygon shape from a set of points.
xPoints | X coordinates of points. |
yPoints | Y coordinate of points. |
nPoints | The number of points. |
close | Indicates whether shape is closed |
|
protected |
Creates a polyline/polygon shape from a set of points.
xPoints | X coordinates of points. |
yPoints | Y coordinate of points. |
nPoints | The number of points. |
close | Indicates whether shape is closed |
|
protectedvirtual |
|
protectedvirtual |
Draws a path.
path | A path to be drawn. |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Draws an arc.
x | X coordinate of center of the arc. |
y | Y coordinate of center of the arc. |
width | A width of circumscribed rectangle. |
height | A height of circumscribed rectangle. |
startAngle | A start angle of the arc. |
arcAngle | An angle of the arc. |
|
protectedvirtual |
|
protectedvirtual |
Draws an image with assigned transform and background.
image | An image to be drawn. |
transform | A transform. |
bkg | A background color. |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Draws a line segment.
x1 | X coordinate of the beginning of segment. |
y1 | Y coordinate of the beginning of segment. |
x2 | X coordinate of the end of segment. |
y2 | Y coordinate of the end of segment. |
|
protectedvirtual |
Draws an oval.
x | X coordinate of center of the oval. |
y | Y coordinate of center of the oval. |
width | A width of circumscribed rectangle. |
height | A height of circumscribed rectangle. |
|
protectedvirtual |
Draws a polygon.
xPoints | X coordinates of points. |
yPoints | Y coordinate of points. |
nPoints | The number of points. |
|
protectedvirtual |
Draws a poligone.
xPoints | X coordinates of points. |
yPoints | Y coordinate of points. |
nPoints | The number of points. |
|
protectedvirtual |
Draws a polyline.
xPoints | X coordinates of points. |
yPoints | Y coordinate of points. |
nPoints | The number of points. |
|
protectedvirtual |
Draws a polyline.
xPoints | X coordinates of points. |
yPoints | Y coordinate of points. |
nPoints | The number of points. |
|
protectedvirtual |
Draws a rectangle.
x | X coordinate of upper left corner of the rectangle. |
y | Y coordinate of upper left corner of the rectangle. |
width | A width of the rectangle. |
height | A height of the rectangle. |
|
protectedvirtual |
Draws a round rectangle.
x | X coordinate of upper left corner of the rectangle. |
y | Y coordinate of upper left corner of the rectangle. |
width | A width of the rectangle. |
height | A height of the rectangle. |
arcWidth | A width of circumscribed rectangle of the arc that rounds an angle of the rectangle. |
arcHeight | A height of circumscribed rectangle of the arc that rounds an angle of the rectangle. |
|
protectedvirtual |
Draws a string at given point.
str | A string to be drawn. |
x | X coordinate of point. |
y | Y coordinate of point. |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
|
protectedvirtual |
Makes necessary preparation of device after the document has been rendered.
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Fills a path.
path | A path to be filled. |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Fills an arc.
x | X coordinate of center of the arc. |
y | Y coordinate of center of the arc. |
width | A width of circumscribed rectangle. |
height | A height of circumscribed rectangle. |
startAngle | A start angle of the arc. |
arcAngle | An angle of the arc. |
|
protectedvirtual |
Fills an oval.
x | X coordinate of center of the oval. |
y | Y coordinate of center of the oval. |
width | A width of circumscribed rectangle. |
height | A height of circumscribed rectangle. |
|
protectedvirtual |
Fills a poligone.
xPoints | X coordinates of points. |
yPoints | Y coordinate of points. |
nPoints | The number of points. |
|
protectedvirtual |
Fills a poligone.
xPoints | X coordinates of points. |
yPoints | Y coordinate of points. |
nPoints | The number of points. |
|
protectedvirtual |
Fills a rectangle.
x | X coordinate of upper left corner of the rectangle. |
y | Y coordinate of upper left corner of the rectangle. |
width | A width of the rectangle. |
height | A height of the rectangle. |
|
protectedvirtual |
Fills a round rectangle.
x | X coordinate of upper left corner of the rectangle. |
y | Y coordinate of upper left corner of the rectangle. |
width | A width of the rectangle. |
height | A height of the rectangle. |
arcWidth | A width of circumscribed rectangle of the arc that rounds an angle of the rectangle. |
arcHeight | A height of circumscribed rectangle of the arc that rounds an angle of the rectangle. |
|
protectedvirtual |
Returns or specifies current background of the page.
Reimplemented in Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, and Aspose::Page::XPS::Presentation::Image::ImageDevice.
|
protectedvirtual |
Returns or specifies current characters transform.
Reimplemented in Aspose::Page::EPS::Device::ImageDevice.
|
protected |
Returns or specifies creator of resulting device output.
|
protectedvirtual |
Returns or specifies current font.
Reimplemented in Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, and Aspose::Page::XPS::Presentation::Image::ImageDevice.
|
protectedvirtual |
Indicates whether device uses direct RGB mode, that is RGB.
Reimplemented in Aspose::Page::EPS::Device::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protected |
Indicates whether this instance of Aspose.Page library is licensed.
|
protected |
|
protectedvirtual |
Returns or specifies current opacity.
Reimplemented in Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, and Aspose::Page::XPS::Presentation::Image::ImageDevice.
|
protectedvirtual |
Returns or specifies current opacity mask.
Reimplemented in Aspose::Page::XPS::Presentation::Pdf::PdfDevice, and Aspose::Page::XPS::Presentation::Image::ImageDevice.
|
protectedvirtual |
Returns or specifies current paint.
Reimplemented in Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, and Aspose::Page::XPS::Presentation::Image::ImageDevice.
|
protectedvirtual |
Device properties including metadata.
Reimplemented in Aspose::Page::EPS::Device::ImageDevice.
|
protectedvirtual |
Returns or specifies a size of the page.
Reimplemented in Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, and Aspose::Page::XPS::Presentation::Image::ImageDevice.
|
protectedvirtual |
Returns or specifies current stroke.
Reimplemented in Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, and Aspose::Page::XPS::Presentation::Image::ImageDevice.
|
protectedvirtual |
Returns or specifies current text rendering mode.
Reimplemented in Aspose::Page::EPS::Device::ImageDevice.
|
protectedvirtual |
Returns or specifies current text stroke width.
Reimplemented in Aspose::Page::EPS::Device::ImageDevice.
|
protectedvirtual |
|
protected |
Gets a value of string property.
key | The name of property. |
|
protected |
Gets a value of color property.
key | The name of property. |
|
protected |
Gets a value of double property.
key | The name of property. |
|
protected |
Gets a value of integer property.
key | The name of property. |
|
protected |
Gets a value of margin property.
key | The name of property. |
|
protected |
Gets a value of matrix property.
key | The name of property. |
|
protected |
Gets a value of rectangle property.
key | The name of property. |
|
protected |
Gets a value of size property.
key | The name of property. |
|
protected |
|
protectedvirtual |
Gets current transform.
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Reimplemented in Aspose::Page::EPS::Device::ImageDevice.
|
protectedvirtual |
Handles an exception which has been caught. Dispatches exception to writeWarning for UnsupportedOperationExceptions and writeError for others
exception | The exception to be handled |
|
protectedvirtual |
Initializes clip of the device.
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protected |
|
protected |
Initializes default properties of device with values.
defaults | Default properties with values. |
|
protected |
Gets a value of boolean property.
key | The name of property. |
|
protected |
|
protectedvirtual |
Reset device to initial state for whole document. Used for reseting output stream.
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice.
|
protectedvirtual |
Reset the device to initial state for a page.
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
|
protectedvirtual |
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.
theta | Angle in radians over which to rotate. |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Rotate the current transformation matrix around a point.
theta | An angle of rotation in radians. |
x | X coordinate of point. |
y | Y coordinate of point. |
|
protectedvirtual |
Scales the current transformation matrix. Calls writeTransform(Transform).
x | A scale in X axis. |
y | A scale in Y axis. |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Returns or specifies current background of the page.
Reimplemented in Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, and Aspose::Page::XPS::Presentation::Image::ImageDevice.
|
protectedvirtual |
Returns or specifies current characters transform.
Reimplemented in Aspose::Page::EPS::Device::ImageDevice.
|
protected |
Returns or specifies creator of resulting device output.
|
protectedvirtual |
Returns or specifies current font.
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Returns or specifies current opacity.
Reimplemented in Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, and Aspose::Page::XPS::Presentation::Image::ImageDevice.
|
protectedvirtual |
Returns or specifies current opacity mask.
Reimplemented in Aspose::Page::XPS::Presentation::Pdf::PdfDevice, and Aspose::Page::XPS::Presentation::Image::ImageDevice.
|
protectedvirtual |
Returns or specifies current paint.
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, and Aspose::Page::XPS::Presentation::Image::ImageDevice.
|
protectedvirtual |
Device properties including metadata.
Reimplemented in Aspose::Page::EPS::Device::ImageDevice.
|
protectedvirtual |
Options for managing rendering process.
Reimplemented in Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, and Aspose::Page::XPS::Presentation::Image::ImageDevice.
|
protectedvirtual |
Returns or specifies a size of the page.
Reimplemented in Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Returns or specifies current stroke.
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, and Aspose::Page::XPS::Presentation::Image::ImageDevice.
|
protectedvirtual |
Returns or specifies current text rendering mode.
Reimplemented in Aspose::Page::EPS::Device::ImageDevice.
|
protectedvirtual |
Returns or specifies current text stroke width.
Reimplemented in Aspose::Page::EPS::Device::ImageDevice.
|
protectedvirtual |
Specifies the clip of the device.
clipPath | A clipping path. |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
|
protectedvirtual |
Specifies current transform.
transform | A transform. |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
|
protectedvirtual |
Shears the current transformation matrix. Calls writeTransform(Transform).
shx | A shear in X axis. |
shy | A shear in Y axis. |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Makes necessary preparation of device before start rendering of document.
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
overridevirtual |
Returns the name of device type.
Reimplemented from System::Object.
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Transforms the current transformation matrix. Calls writeTransform(Transform)
transform | Transform to be applied. |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Translates the current transformation matrix. Calls writeTransform(Transform).
x | Translation in X axis. |
y | Translation in Y axis. |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Writes out current background.
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Writes out the cap of the stroke.
cap | Line cap of the stroke. |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Writes a comment.
comment | A comment to be written. |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Writes out the dash of the stroke.
dash | The dash pattern or an empty array if line is solid. |
phase | The phase of the dash pattern. |
dashCap | The 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::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Writes out an error, by default the stack trace is printed.
error | The error to be reported |
|
protectedvirtual |
Writes out the join of the stroke.
join | Line join of the stroke. |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Writes out the miter limit of the stroke.
limit | Miter limit of the stroke. |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Writes out paint as the given color.
color | The color to be written |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Writes out paint as the given gradient.
paint | The paint to be written |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Writes out paint as the given gradient.
paint | The paint to be written |
|
protectedvirtual |
Writes out paint as the given gradient.
paint | The paint to be written |
|
protectedvirtual |
Writes out paint as the given texture.
paint | The paint to be written |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Writes out paint as the given hatch pattern.
paint | The paint to be written |
|
protectedvirtual |
Writes out paint.
paint | The paint to be written |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Writes out string with specified font.
font | Specified font. |
str | The string. |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
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.
stroke | A stroke to be written. |
|
protectedvirtual |
Writes out a warning, by default to System.err.
warning | The warning to be written |
|
protectedvirtual |
Writes out a warning, by default to System.err.
warning | The warning to be written |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protectedvirtual |
Writes out the width of the stroke.
width | The width of the stroke |
Reimplemented in Aspose::Page::EPS::Device::PdfDevice, Aspose::Page::EPS::Device::ImageDevice, Aspose::Page::XPS::Presentation::Pdf::PdfDevice, Aspose::Page::XPS::Presentation::Image::ImageDevice, and Aspose::Page::EPS::Device::ApsDevice.
|
protected |
|
protected |
Current background of the page.
|
protected |
Current character transform.
|
protected |
Creator of resulting device output.
|
staticprotected |
|
protected |
Current font.
|
protected |
|
protected |
Current opacity.
|
protected |
Current opacity mask.
|
protected |
Current paint.
|
protected |
Options for managing rendering process.
|
protected |
Size of the page.
|
protected |
Current stroke.
|
protected |
Current text rendering mode.
|
protected |
Current text stroke width.
|
staticprotected |
Current device version.