Aspose::Page::XPS::Presentation::Image::ImageDevice Class Reference

Class incapsulating image composing device. More...

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

Public Member Functions

virtual ASPOSE_PAGE_SHARED_API void set_SaveOptions (System::SharedPtr< Aspose::Page::SaveOptions > value)
 Initializes save options. More...
 
virtual ASPOSE_PAGE_SHARED_API System::Drawing::Size get_Size ()
 Gets/sets the device media size. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_Size (System::Drawing::Size value)
 Gets/sets the device media size. More...
 
virtual ASPOSE_PAGE_SHARED_API System::Drawing::Color get_Background ()
 Gets/sets the background color. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_Background (System::Drawing::Color value)
 Gets/sets the background color. More...
 
virtual ASPOSE_PAGE_SHARED_API float get_Opacity ()
 Gets/sets the opacity. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_Opacity (float value)
 Gets/sets the opacity. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Penget_Stroke ()
 Gets/sets the stroke for drawing paths. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_Stroke (System::SharedPtr< System::Drawing::Pen > value)
 Gets/sets the stroke for drawing paths. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Brushget_Paint ()
 Gets/sets the brush for filling paths. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_Paint (System::SharedPtr< System::Drawing::Brush > value)
 Gets/sets the brush for filling paths. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Brushget_OpacityMask ()
 Gets/sets the brush for opacity mask. The mask applies over Paint or Strike. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_OpacityMask (System::SharedPtr< System::Drawing::Brush > value)
 Gets/sets the brush for opacity mask. The mask applies over Paint or Strike. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< ITrFontget_Font ()
 Gets/sets the current font. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_Font (System::SharedPtr< ITrFont > value)
 Gets/sets the current font. More...
 
ASPOSE_PAGE_SHARED_API System::ArrayPtr< System::ArrayPtr< System::ArrayPtr< uint8_t > > > get_Result ()
 Returns the resulting images byte arrays. The first dimension is for inner documents and the second one is for pages within inner documents. More...
 
virtual ASPOSE_PAGE_SHARED_API int32_t get_CurrentPageNumber ()
 Returns the absolute number of the current page within the document. More...
 
virtual ASPOSE_PAGE_SHARED_API int32_t get_CurrentRelativePageNumber ()
 Returns the relative number of the current page within the current partition. More...
 
ASPOSE_PAGE_SHARED_API ImageDevice ()
 Creates the new instance. More...
 
ASPOSE_PAGE_SHARED_API ImageDevice (System::Drawing::Size pageSize)
 Creates the new instance with specified media size. More...
 
virtual ASPOSE_PAGE_SHARED_API void ReNew ()
 Sets the devices to the initial state. More...
 
virtual ASPOSE_PAGE_SHARED_API void StartDocument ()
 Starts the document. More...
 
virtual ASPOSE_PAGE_SHARED_API void EndDocument ()
 Accomplishes the document. More...
 
virtual ASPOSE_PAGE_SHARED_API void Reset ()
 Resets the device. More...
 
ASPOSE_PAGE_SHARED_API void InitPageNumbers ()
 Initializes numbers of pages to output. More...
 
virtual ASPOSE_PAGE_SHARED_API bool OpenPage (System::String title)
 Starts a new page with the specifies title. More...
 
virtual ASPOSE_PAGE_SHARED_API bool OpenPage (float width, float height)
 Starts a new page with the specified width and height. More...
 
virtual ASPOSE_PAGE_SHARED_API void ClosePage ()
 Accomplishes the page. More...
 
virtual ASPOSE_PAGE_SHARED_API void UpdatePageParameters (System::SharedPtr< IMultiPageDevice > device)
 Updates the current page parameters. More...
 
virtual ASPOSE_PAGE_SHARED_API void OpenPartition ()
 Starts a new document partition. More...
 
virtual ASPOSE_PAGE_SHARED_API void ClosePartition ()
 Accomplished the document partition. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< DeviceCreate ()
 Creates a new instance of the device based on this device instance. Writes this device graphics state, i.e. creates ApsCanvas instance(s) with corresponding RenderTransform and Clip properties. More...
 
virtual ASPOSE_PAGE_SHARED_API void Dispose ()
 Disposes this device instance. Finalizes this device instance graphics state, i.e. switches APS composing context to the ApsCanvas of the level higher then this device's graphics state ApsCanvas. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Drawing2D::MatrixGetTransform ()
 Returns the current transformation matrix. More...
 
virtual ASPOSE_PAGE_SHARED_API void SetTransform (System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform)
 Sets the current transformation matrix. More...
 
virtual ASPOSE_PAGE_SHARED_API void Transform (System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform)
 Multiplies the current transformation matrix by the specified Matrix. More...
 
virtual ASPOSE_PAGE_SHARED_API void Translate (double x, double y)
 Applies the specified translation vector to the current transformation matrix. More...
 
virtual ASPOSE_PAGE_SHARED_API void Rotate (double theta)
 Applies a clockwise rotation about the origin to the current transformation matrix. More...
 
virtual ASPOSE_PAGE_SHARED_API void Scale (double x, double y)
 Applies the specified scale vector to the current transformation matrix. More...
 
virtual ASPOSE_PAGE_SHARED_API void Shear (double shx, double shy)
 Applies the specified shear vector to the current transformation matrix. More...
 
virtual ASPOSE_PAGE_SHARED_API void SetClip (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > clipPath)
 Adds the specified path to the current clip path. More...
 
virtual ASPOSE_PAGE_SHARED_API void Draw (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > path)
 Draws the specified path. More...
 
virtual ASPOSE_PAGE_SHARED_API void Fill (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > path)
 Fills the specified path. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawString (System::String str, double x, double y)
 Draws a string at the specified position. More...
 
- Public Member Functions inherited from Aspose::Page::Device
ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< System::Object > > > get_Properties () const
 Device properties including metadata. More...
 
ASPOSE_PAGE_SHARED_API void set_Properties (System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< System::Object >>> value)
 Device properties including metadata. More...
 
ASPOSE_PAGE_SHARED_API System::String get_Creator () const
 Returns or specifies creator of resulting device output. More...
 
ASPOSE_PAGE_SHARED_API void set_Creator (System::String value)
 Returns or specifies creator of resulting device output. More...
 
virtual ASPOSE_PAGE_SHARED_API bool get_IsDirectRGB ()
 Indicates whether device uses direct RGB mode, that is RGB. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Drawing2D::Matrixget_CharTM ()
 Returns or specifies current characters transform. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_CharTM (System::SharedPtr< System::Drawing::Drawing2D::Matrix > value)
 Returns or specifies current characters transform. More...
 
virtual ASPOSE_PAGE_SHARED_API Aspose::Page::TextRenderingMode get_TextRenderingMode ()
 Returns or specifies current text rendering mode. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_TextRenderingMode (Aspose::Page::TextRenderingMode value)
 Returns or specifies current text rendering mode. More...
 
virtual ASPOSE_PAGE_SHARED_API float get_TextStrokeWidth ()
 Returns or specifies current text stroke width. More...
 
virtual ASPOSE_PAGE_SHARED_API void set_TextStrokeWidth (float value)
 Returns or specifies current text stroke width. More...
 
ASPOSE_PAGE_SHARED_API bool get_IsLicensed ()
 Indicates whether this instance of Aspose.Page library is licensed. More...
 
ASPOSE_PAGE_SHARED_API Device (System::Drawing::Size pageSize)
 Initializes Device with a size of a page. More...
 
ASPOSE_PAGE_SHARED_API System::String GetProperty (System::String key)
 Gets a value of string property. More...
 
ASPOSE_PAGE_SHARED_API System::Drawing::Color GetPropertyColor (System::String key)
 Gets a value of color property. More...
 
ASPOSE_PAGE_SHARED_API System::Drawing::RectangleF GetPropertyRectangle (System::String key)
 Gets a value of rectangle property. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< MarginsGetPropertyMargins (System::String key)
 Gets a value of margin property. More...
 
ASPOSE_PAGE_SHARED_API System::Drawing::Size GetPropertySize (System::String key)
 Gets a value of size property. More...
 
ASPOSE_PAGE_SHARED_API int32_t GetPropertyInt (System::String key)
 Gets a value of integer property. More...
 
ASPOSE_PAGE_SHARED_API double GetPropertyDouble (System::String key)
 Gets a value of double property. More...
 
ASPOSE_PAGE_SHARED_API bool IsProperty (System::String key)
 Gets a value of boolean property. More...
 
virtual ASPOSE_PAGE_SHARED_API void Rotate (double theta, double x, double y)
 Rotate the current transformation matrix around a point. More...
 
virtual ASPOSE_PAGE_SHARED_API void InitClip ()
 Initializes clip of the device. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawImage (System::SharedPtr< System::Drawing::Bitmap > image, System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform, System::Drawing::Color bkg)
 Draws an image with assigned transform and background. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteComment (System::String comment)
 Writes a comment. More...
 
virtual ASPOSE_PAGE_SHARED_API System::String ToString ()
 Returns the name of device type. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawArc (double x, double y, double width, double height, double startAngle, double arcAngle)
 Draws an arc. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawLine (double x1, double y1, double x2, double y2)
 Draws a line segment. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawOval (double x, double y, double width, double height)
 Draws an oval. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawPolyline (System::ArrayPtr< int32_t > xPoints, System::ArrayPtr< int32_t > yPoints, int32_t nPoints)
 Draws a polyline. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawPolyline (System::ArrayPtr< double > xPoints, System::ArrayPtr< double > yPoints, int32_t nPoints)
 Draws a polyline. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawPolygon (System::ArrayPtr< int32_t > xPoints, System::ArrayPtr< int32_t > yPoints, int32_t nPoints)
 Draws a polygon. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawPolygon (System::ArrayPtr< double > xPoints, System::ArrayPtr< double > yPoints, int32_t nPoints)
 Draws a poligone. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawRect (double x, double y, double width, double height)
 Draws a rectangle. More...
 
virtual ASPOSE_PAGE_SHARED_API void DrawRoundRect (double x, double y, double width, double height, double arcWidth, double arcHeight)
 Draws a round rectangle. More...
 
virtual ASPOSE_PAGE_SHARED_API void FillArc (double x, double y, double width, double height, double startAngle, double arcAngle)
 Fills an arc. More...
 
virtual ASPOSE_PAGE_SHARED_API void FillOval (double x, double y, double width, double height)
 Fills an oval. More...
 
virtual ASPOSE_PAGE_SHARED_API void FillPolygon (System::ArrayPtr< int32_t > xPoints, System::ArrayPtr< int32_t > yPoints, int32_t nPoints)
 Fills a poligone. More...
 
virtual ASPOSE_PAGE_SHARED_API void FillPolygon (System::ArrayPtr< double > xPoints, System::ArrayPtr< double > yPoints, int32_t nPoints)
 Fills a poligone. More...
 
virtual ASPOSE_PAGE_SHARED_API void FillRect (double x, double y, double width, double height)
 Fills a rectangle. More...
 
virtual ASPOSE_PAGE_SHARED_API void FillRoundRect (double x, double y, double width, double height, double arcWidth, double arcHeight)
 Fills a round rectangle. More...
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared refernce 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 int 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 (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. 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

 ImageDevice (System::SharedPtr< ImageDevice > device)
 The clone constructor. Initializes new instance of ImageDevice with existing 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 WriteWidth (float width)
 Writes the line width. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteCap (System::Drawing::Drawing2D::LineCap cap)
 Writes the line cap. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteJoin (System::Drawing::Drawing2D::LineJoin join)
 Writes the line join. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteMiterLimit (float limit)
 Writes the miter limit. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteDash (System::ArrayPtr< double > dash, double phase, System::Drawing::Drawing2D::DashCap dashCap)
 Writes dash parameters. More...
 
virtual ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::SolidBrush > brush)
 Writes the stroke brush. More...
 
virtual ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::Drawing2D::LinearGradientBrush > brush)
 Writes the stroke brush. More...
 
virtual ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::TextureBrush > brush)
 Writes the stroke brush. More...
 
virtual ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::Brush > brush)
 Writes the stroke brush. 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 ~ImageDevice ()
 
- Protected Member Functions inherited from Aspose::Page::Device
 Device ()
 Initializes new instance of Device. More...
 
 Device (System::SharedPtr< Device > device)
 Clone constructor. Initializes this device with existing device. More...
 
void InitProperties (System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< System::Object >>> defaults)
 Initializes default properties of device with values. More...
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Drawing2D::GraphicsPathCreateShape (System::ArrayPtr< int32_t > xPoints, System::ArrayPtr< int32_t > yPoints, int32_t nPoints, bool close)
 Creates a polyline/polygon shape from a set of points. More...
 
System::SharedPtr< System::Drawing::Drawing2D::GraphicsPathCreateShape (System::ArrayPtr< double > xPoints, System::ArrayPtr< double > yPoints, int32_t nPoints, bool close)
 Creates a polyline/polygon shape from a set of points. More...
 
virtual ASPOSE_PAGE_SHARED_API void ClearRect (float x, float y, float width, float height)
 Clears rectangle by painting it with the backgroundColor. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteBackground ()
 Writes out current background. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteStroke (System::SharedPtr< System::Drawing::Pen > stroke)
 Writes out the current stroke. If stroke is an instance of BasicStroke it will call writeWidth, writeCap, writeJoin, writeMiterLimit and writeDash, if any were different than the current stroke. More...
 
virtual ASPOSE_PAGE_SHARED_API void HandleException (System::Exception exception)
 Handles an exception which has been caught. Dispatches exception to writeWarning for UnsupportedOperationExceptions and writeError for others More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteWarning (System::Exception warning)
 Writes out a warning, by default to System.err. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteWarning (System::String warning)
 Writes out a warning, by default to System.err. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteError (System::Exception error)
 Writes out an error, by default the stack trace is printed. More...
 
virtual ASPOSE_PAGE_SHARED_API void WriteString (System::SharedPtr< ITrFont > font, System::String str)
 Writes out string with specified font. More...
 
virtual ASPOSE_PAGE_SHARED_API void SetVentureLicense (System::SharedPtr< LicenseManagement::VentureLicense > license)
 
virtual ASPOSE_PAGE_SHARED_API System::SharedPtr< LicenseManagement::VentureLicense > GetVentureLicense ()
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. 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 ()
 Impleemnts C# typeof(System.Object) construct. More...
 
- Static Public Attributes inherited from Aspose::Page::Device
static ASPOSE_PAGE_SHARED_API System::String VERSION
 
- Protected Attributes inherited from Aspose::Page::Device
System::String creator
 
System::SharedPtr< Aspose::Page::SaveOptionssaveOptions
 
System::Drawing::Size size
 
float opacity
 
System::SharedPtr< System::Drawing::Penstroke
 
System::SharedPtr< System::Drawing::Brushpaint
 
System::SharedPtr< System::Drawing::BrushopacityMask
 
System::SharedPtr< ITrFontfont
 
System::SharedPtr< System::Drawing::Drawing2D::MatrixcharTM
 
Aspose::Page::TextRenderingMode textRenderingMode
 
float textStrokeWidth
 

Detailed Description

Class incapsulating image composing device.

Constructor & Destructor Documentation

◆ ImageDevice() [1/3]

ASPOSE_PAGE_SHARED_API Aspose::Page::XPS::Presentation::Image::ImageDevice::ImageDevice ( )

Creates the new instance.

◆ ImageDevice() [2/3]

ASPOSE_PAGE_SHARED_API Aspose::Page::XPS::Presentation::Image::ImageDevice::ImageDevice ( System::Drawing::Size  pageSize)

Creates the new instance with specified media size.

Parameters
pageSizeThe size of the device output media.

◆ ImageDevice() [3/3]

Aspose::Page::XPS::Presentation::Image::ImageDevice::ImageDevice ( System::SharedPtr< ImageDevice device)
protected

The clone constructor. Initializes new instance of ImageDevice with existing device.

Parameters
deviceExisting device.

◆ ~ImageDevice()

virtual ASPOSE_PAGE_SHARED_API Aspose::Page::XPS::Presentation::Image::ImageDevice::~ImageDevice ( )
protectedvirtual

Member Function Documentation

◆ ApplyGraphicState()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::ApplyGraphicState ( System::SharedPtr< System::Drawing::Drawing2D::Matrix transform,
System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath clip 
)
protectedvirtual

Reimplemented from Aspose::Page::Device.

◆ ClosePage()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::ClosePage ( )
virtual

Accomplishes the page.

Implements Aspose::Page::IMultiPageDevice.

◆ ClosePartition()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::ClosePartition ( )
virtual

Accomplished the document partition.

Implements Aspose::Page::IMultiPartitionDevice.

◆ Create()

virtual ASPOSE_PAGE_SHARED_API System::SharedPtr<Device> Aspose::Page::XPS::Presentation::Image::ImageDevice::Create ( )
virtual

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

Returns
The new device instance.

Reimplemented from Aspose::Page::Device.

◆ Dispose()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::Dispose ( )
virtual

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

Reimplemented from Aspose::Page::Device.

◆ Draw()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::Draw ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath path)
virtual

Draws the specified path.

Parameters
pathThe path to draw.

Reimplemented from Aspose::Page::Device.

◆ DrawString() [1/2]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::DrawString ( System::String  str,
double  x,
double  y 
)
virtual

Draws a string at the specified position.

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

Reimplemented from Aspose::Page::Device.

◆ DrawString() [2/2]

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

Reimplemented from Aspose::Page::Device.

◆ EndDocument()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::EndDocument ( )
virtual

Accomplishes the document.

Reimplemented from Aspose::Page::Device.

◆ Fill()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::Fill ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath path)
virtual

Fills the specified path.

Parameters
pathThe path to fill.

Reimplemented from Aspose::Page::Device.

◆ get_Background()

virtual ASPOSE_PAGE_SHARED_API System::Drawing::Color Aspose::Page::XPS::Presentation::Image::ImageDevice::get_Background ( )
virtual

Gets/sets the background color.

Reimplemented from Aspose::Page::Device.

◆ get_CurrentPageNumber()

virtual ASPOSE_PAGE_SHARED_API int32_t Aspose::Page::XPS::Presentation::Image::ImageDevice::get_CurrentPageNumber ( )
virtual

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

Implements Aspose::Page::IMultiPageDevice.

◆ get_CurrentRelativePageNumber()

virtual ASPOSE_PAGE_SHARED_API int32_t Aspose::Page::XPS::Presentation::Image::ImageDevice::get_CurrentRelativePageNumber ( )
virtual

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

Implements Aspose::Page::IMultiPartitionDevice.

◆ get_Font()

virtual ASPOSE_PAGE_SHARED_API System::SharedPtr<ITrFont> Aspose::Page::XPS::Presentation::Image::ImageDevice::get_Font ( )
virtual

Gets/sets the current font.

Reimplemented from Aspose::Page::Device.

◆ get_Opacity()

virtual ASPOSE_PAGE_SHARED_API float Aspose::Page::XPS::Presentation::Image::ImageDevice::get_Opacity ( )
virtual

Gets/sets the opacity.

Reimplemented from Aspose::Page::Device.

◆ get_OpacityMask()

virtual ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Drawing::Brush> Aspose::Page::XPS::Presentation::Image::ImageDevice::get_OpacityMask ( )
virtual

Gets/sets the brush for opacity mask. The mask applies over Paint or Strike.

Reimplemented from Aspose::Page::Device.

◆ get_Paint()

virtual ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Drawing::Brush> Aspose::Page::XPS::Presentation::Image::ImageDevice::get_Paint ( )
virtual

Gets/sets the brush for filling paths.

Reimplemented from Aspose::Page::Device.

◆ get_Result()

ASPOSE_PAGE_SHARED_API System::ArrayPtr<System::ArrayPtr<System::ArrayPtr<uint8_t> > > Aspose::Page::XPS::Presentation::Image::ImageDevice::get_Result ( )

Returns the resulting images byte arrays. The first dimension is for inner documents and the second one is for pages within inner documents.

◆ get_Size()

virtual ASPOSE_PAGE_SHARED_API System::Drawing::Size Aspose::Page::XPS::Presentation::Image::ImageDevice::get_Size ( )
virtual

Gets/sets the device media size.

Reimplemented from Aspose::Page::Device.

◆ get_Stroke()

virtual ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Drawing::Pen> Aspose::Page::XPS::Presentation::Image::ImageDevice::get_Stroke ( )
virtual

Gets/sets the stroke for drawing paths.

Reimplemented from Aspose::Page::Device.

◆ GetTransform()

virtual ASPOSE_PAGE_SHARED_API System::SharedPtr<System::Drawing::Drawing2D::Matrix> Aspose::Page::XPS::Presentation::Image::ImageDevice::GetTransform ( )
virtual

Returns the current transformation matrix.

Returns
The current transformation matrix.

Reimplemented from Aspose::Page::Device.

◆ InitPageNumbers()

ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::InitPageNumbers ( )
virtual

Initializes numbers of pages to output.

Implements Aspose::Page::IMultiPageDevice.

◆ OpenPage() [1/2]

virtual ASPOSE_PAGE_SHARED_API bool Aspose::Page::XPS::Presentation::Image::ImageDevice::OpenPage ( System::String  title)
virtual

Starts a new page with the specifies title.

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

Implements Aspose::Page::IMultiPageDevice.

◆ OpenPage() [2/2]

virtual ASPOSE_PAGE_SHARED_API bool Aspose::Page::XPS::Presentation::Image::ImageDevice::OpenPage ( float  width,
float  height 
)
virtual

Starts a new page with the specified width and height.

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

Implements Aspose::Page::IMultiPageDevice.

◆ OpenPartition()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::OpenPartition ( )
virtual

Starts a new document partition.

Implements Aspose::Page::IMultiPartitionDevice.

◆ ReNew()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::ReNew ( )
virtual

Sets the devices to the initial state.

Reimplemented from Aspose::Page::Device.

◆ Reset()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::Reset ( )
virtual

Resets the device.

Reimplemented from Aspose::Page::Device.

◆ Rotate()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::Rotate ( double  theta)
virtual

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

Parameters
thetaThe angle of the rotation, in radians.

Reimplemented from Aspose::Page::Device.

◆ Scale()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::Scale ( double  x,
double  y 
)
virtual

Applies the specified scale vector to the current transformation matrix.

Parameters
xThe x scale factor.
yThe y scale factor.

Reimplemented from Aspose::Page::Device.

◆ set_Background()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::set_Background ( System::Drawing::Color  value)
virtual

Gets/sets the background color.

Reimplemented from Aspose::Page::Device.

◆ set_Font()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::set_Font ( System::SharedPtr< ITrFont value)
virtual

Gets/sets the current font.

Reimplemented from Aspose::Page::Device.

◆ set_Opacity()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::set_Opacity ( float  value)
virtual

Gets/sets the opacity.

Reimplemented from Aspose::Page::Device.

◆ set_OpacityMask()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::set_OpacityMask ( System::SharedPtr< System::Drawing::Brush value)
virtual

Gets/sets the brush for opacity mask. The mask applies over Paint or Strike.

Reimplemented from Aspose::Page::Device.

◆ set_Paint()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::set_Paint ( System::SharedPtr< System::Drawing::Brush value)
virtual

Gets/sets the brush for filling paths.

Reimplemented from Aspose::Page::Device.

◆ set_SaveOptions()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::set_SaveOptions ( System::SharedPtr< Aspose::Page::SaveOptions value)
virtual

Initializes save options.

Reimplemented from Aspose::Page::Device.

◆ set_Size()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::set_Size ( System::Drawing::Size  value)
virtual

Gets/sets the device media size.

Reimplemented from Aspose::Page::Device.

◆ set_Stroke()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::set_Stroke ( System::SharedPtr< System::Drawing::Pen value)
virtual

Gets/sets the stroke for drawing paths.

Reimplemented from Aspose::Page::Device.

◆ SetClip()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::SetClip ( System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath clipPath)
virtual

Adds the specified path to the current clip path.

Parameters
clipPathThe clip path to be added.

Reimplemented from Aspose::Page::Device.

◆ SetTransform()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::SetTransform ( System::SharedPtr< System::Drawing::Drawing2D::Matrix transform)
virtual

Sets the current transformation matrix.

Parameters
transformThe new transformation matrix.

Reimplemented from Aspose::Page::Device.

◆ Shear()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::Shear ( double  shx,
double  shy 
)
virtual

Applies the specified shear vector to the current transformation matrix.

Parameters
shxThe x shear factor.
shyThe y shear factor.

Reimplemented from Aspose::Page::Device.

◆ StartDocument()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::StartDocument ( )
virtual

Starts the document.

Reimplemented from Aspose::Page::Device.

◆ Transform()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::Transform ( System::SharedPtr< System::Drawing::Drawing2D::Matrix transform)
virtual

Multiplies the current transformation matrix by the specified Matrix.

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

Reimplemented from Aspose::Page::Device.

◆ Translate()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::Translate ( double  x,
double  y 
)
virtual

Applies the specified translation vector to the current transformation matrix.

Parameters
xThe x offset.
yThe y offset.

Reimplemented from Aspose::Page::Device.

◆ UpdatePageParameters()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::UpdatePageParameters ( System::SharedPtr< IMultiPageDevice device)
virtual

Updates the current page parameters.

Parameters
deviceThe multipage device.

Implements Aspose::Page::IMultiPageDevice.

◆ WriteCap()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::WriteCap ( System::Drawing::Drawing2D::LineCap  cap)
protectedvirtual

Writes the line cap.

Parameters
capThe line cap.

Reimplemented from Aspose::Page::Device.

◆ WriteDash()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::WriteDash ( System::ArrayPtr< double >  dash,
double  phase,
System::Drawing::Drawing2D::DashCap  dashCap 
)
protectedvirtual

Writes dash parameters.

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

Reimplemented from Aspose::Page::Device.

◆ WriteJoin()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::WriteJoin ( System::Drawing::Drawing2D::LineJoin  join)
protectedvirtual

Writes the line join.

Parameters
joinThe line join.

Reimplemented from Aspose::Page::Device.

◆ WriteMiterLimit()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::WriteMiterLimit ( float  limit)
protectedvirtual

Writes the miter limit.

Parameters
limitThe miter limit.

Reimplemented from Aspose::Page::Device.

◆ WritePaint() [1/4]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::WritePaint ( System::SharedPtr< System::Drawing::SolidBrush brush)
protectedvirtual

Writes the stroke brush.

Parameters
brushThe SolidBrush instance.

Reimplemented from Aspose::Page::Device.

◆ WritePaint() [2/4]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::WritePaint ( System::SharedPtr< System::Drawing::Drawing2D::LinearGradientBrush brush)
protectedvirtual

Writes the stroke brush.

Parameters
brushThe LinearGradientBrush instance.

Reimplemented from Aspose::Page::Device.

◆ WritePaint() [3/4]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::WritePaint ( System::SharedPtr< System::Drawing::TextureBrush brush)
protectedvirtual

Writes the stroke brush.

Parameters
brushThe TextureBrush instance.

Reimplemented from Aspose::Page::Device.

◆ WritePaint() [4/4]

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::WritePaint ( System::SharedPtr< System::Drawing::Brush brush)
protectedvirtual

Writes the stroke brush.

Parameters
brushThe brush.

Reimplemented from Aspose::Page::Device.

◆ WriteWidth()

virtual ASPOSE_PAGE_SHARED_API void Aspose::Page::XPS::Presentation::Image::ImageDevice::WriteWidth ( float  width)
protectedvirtual

Writes the line width.

Parameters
widthThe line width.

Reimplemented from Aspose::Page::Device.