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

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...
 
ASPOSE_PAGE_SHARED_API int32_t get_CurrentPageNumber () override
 Returns the absolute number of the current page within the document. More...
 
ASPOSE_PAGE_SHARED_API int32_t get_CurrentRelativePageNumber () override
 Returns the relative number of the current page within the current partition. More...
 
ASPOSE_PAGE_SHARED_API ImageDevice ()
 Creates the new instance. More...
 
ASPOSE_PAGE_SHARED_API ImageDevice (System::Drawing::Size pageSize)
 Creates the new instance with specified media size. More...
 
ASPOSE_PAGE_SHARED_API void InitPageNumbers () override
 Initializes numbers of pages to output. More...
 
ASPOSE_PAGE_SHARED_API bool OpenPage (System::String title) override
 Starts a new page with the specifies title. More...
 
ASPOSE_PAGE_SHARED_API bool OpenPage (float width, float height) override
 Starts a new page with the specified width and height. More...
 
ASPOSE_PAGE_SHARED_API void ClosePage () override
 Accomplishes the page. More...
 
ASPOSE_PAGE_SHARED_API void UpdatePageParameters (System::SharedPtr< IMultiPageDevice > device) override
 Updates the current page parameters. More...
 
ASPOSE_PAGE_SHARED_API void OpenPartition () override
 Starts a new document partition. More...
 
ASPOSE_PAGE_SHARED_API void ClosePartition () override
 Accomplished the document partition. More...
 
- Public Member Functions inherited from Aspose::Page::Device
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...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Protected Member Functions

ASPOSE_PAGE_SHARED_API void set_SaveOptions (System::SharedPtr< Aspose::Page::SaveOptions > value) override
 Initializes save options. More...
 
ASPOSE_PAGE_SHARED_API System::Drawing::Size get_Size () override
 Gets/sets the device media size. More...
 
ASPOSE_PAGE_SHARED_API void set_Size (System::Drawing::Size value) override
 Gets/sets the device media size. More...
 
ASPOSE_PAGE_SHARED_API System::Drawing::Color get_Background () override
 Gets/sets the background color. More...
 
ASPOSE_PAGE_SHARED_API void set_Background (System::Drawing::Color value) override
 Gets/sets the background color. More...
 
ASPOSE_PAGE_SHARED_API float get_Opacity () override
 Gets/sets the opacity. More...
 
ASPOSE_PAGE_SHARED_API void set_Opacity (float value) override
 Gets/sets the opacity. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Penget_Stroke () override
 Gets/sets the stroke for drawing paths. More...
 
ASPOSE_PAGE_SHARED_API void set_Stroke (System::SharedPtr< System::Drawing::Pen > value) override
 Gets/sets the stroke for drawing paths. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Brushget_Paint () override
 Gets/sets the brush for filling paths. More...
 
ASPOSE_PAGE_SHARED_API void set_Paint (System::SharedPtr< System::Drawing::Brush > value) override
 Gets/sets the brush for filling paths. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Brushget_OpacityMask () override
 Gets/sets the brush for opacity mask. The mask applies over Paint or Strike. More...
 
ASPOSE_PAGE_SHARED_API void set_OpacityMask (System::SharedPtr< System::Drawing::Brush > value) override
 Gets/sets the brush for opacity mask. The mask applies over Paint or Strike. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< BaseTrFontget_Font () override
 Gets/sets the current font. More...
 
ASPOSE_PAGE_SHARED_API void set_Font (System::SharedPtr< BaseTrFont > value) override
 Gets/sets the current font. More...
 
ASPOSE_PAGE_SHARED_API void ReNew () override
 Sets the devices to the initial state. More...
 
 ImageDevice (System::SharedPtr< ImageDevice > device)
 The clone constructor. Initializes new instance of ImageDevice with existing device. More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (ImageDevice, CODEPORTING_ARGS(System::SharedPtr< ImageDevice > device))
 
ASPOSE_PAGE_SHARED_API void StartDocument () override
 Starts the document. More...
 
ASPOSE_PAGE_SHARED_API void EndDocument () override
 Accomplishes the document. More...
 
ASPOSE_PAGE_SHARED_API void Reset () override
 Resets the device. More...
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< DeviceCreate () override
 Creates a new instance of the device based on this device instance. Writes this device graphics state, i.e. creates ApsCanvas instance(s) with corresponding RenderTransform and Clip properties. More...
 
ASPOSE_PAGE_SHARED_API void Dispose () override
 Disposes this device instance. Finalizes this device instance graphics state, i.e. switches APS composing context to the ApsCanvas of the level higher then this device's graphics state ApsCanvas. More...
 
ASPOSE_PAGE_SHARED_API void ApplyGraphicState (System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform, System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > clip) override
 
ASPOSE_PAGE_SHARED_API System::SharedPtr< System::Drawing::Drawing2D::MatrixGetTransform () override
 Returns the current transformation matrix. More...
 
ASPOSE_PAGE_SHARED_API void SetTransform (System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform) override
 Sets the current transformation matrix. More...
 
ASPOSE_PAGE_SHARED_API void Transform (System::SharedPtr< System::Drawing::Drawing2D::Matrix > transform) override
 Multiplies the current transformation matrix by the specified Matrix. More...
 
ASPOSE_PAGE_SHARED_API void Translate (double x, double y) override
 Applies the specified translation vector to the current transformation matrix. More...
 
ASPOSE_PAGE_SHARED_API void Rotate (double theta) override
 Applies a clockwise rotation about the origin to the current transformation matrix. More...
 
ASPOSE_PAGE_SHARED_API void Scale (double x, double y) override
 Applies the specified scale vector to the current transformation matrix. More...
 
ASPOSE_PAGE_SHARED_API void Shear (double shx, double shy) override
 Applies the specified shear vector to the current transformation matrix. More...
 
ASPOSE_PAGE_SHARED_API void SetClip (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > clipPath) override
 Adds the specified path to the current clip path. More...
 
ASPOSE_PAGE_SHARED_API void WriteWidth (float width) override
 Writes the line width. More...
 
ASPOSE_PAGE_SHARED_API void WriteCap (System::Drawing::Drawing2D::LineCap cap) override
 Writes the line cap. More...
 
ASPOSE_PAGE_SHARED_API void WriteJoin (System::Drawing::Drawing2D::LineJoin join) override
 Writes the line join. More...
 
ASPOSE_PAGE_SHARED_API void WriteMiterLimit (float limit) override
 Writes the miter limit. More...
 
ASPOSE_PAGE_SHARED_API void WriteDash (System::ArrayPtr< double > dash, double phase, System::Drawing::Drawing2D::DashCap dashCap, float width) override
 Writes dash parameters. More...
 
ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::SolidBrush > brush) override
 Writes the stroke brush. More...
 
ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::Drawing2D::LinearGradientBrush > brush) override
 Writes the stroke brush. More...
 
ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::TextureBrush > brush) override
 Writes the stroke brush. More...
 
ASPOSE_PAGE_SHARED_API void WritePaint (System::SharedPtr< System::Drawing::Brush > brush) override
 Writes the stroke brush. More...
 
ASPOSE_PAGE_SHARED_API void Draw (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > path) override
 Draws the specified path. More...
 
ASPOSE_PAGE_SHARED_API void Fill (System::SharedPtr< System::Drawing::Drawing2D::GraphicsPath > path) override
 Fills the specified path. More...
 
ASPOSE_PAGE_SHARED_API void DrawString (System::String str, double x, double y) override
 Draws a string at the specified position. More...
 
ASPOSE_PAGE_SHARED_API void DrawString (System::String str, double x, double y, double width, System::SharedPtr< Aspose::Rendering::ApsGlyphsIndices > indices, bool isRtl=false) override
 
ASPOSE_PAGE_SHARED_API int64_t GetFinalWrittenLength () override
 
virtual ASPOSE_PAGE_SHARED_API ~ImageDevice ()
 
- Protected Member Functions inherited from Aspose::Page::Device
bool get_IsMainDocument () const
 
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 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...
 
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 ReNewForMerge (bool mainDocument)
 
void InitGS ()
 
 Device (System::SharedPtr< Device > device)
 Clone constructor. Initializes this device with existing device. More...
 
System::SharedPtr< Aspose::Page::SaveOptionsGetSaveOptions ()
 
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< MarginsGetPropertyMargins (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::MatrixGetPropertyMatrix (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 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 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 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::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 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::Drawing2D::HatchBrush > paint)
 Writes out paint as the given hatch pattern. 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 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)
 

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...
 
- Protected Attributes inherited from Aspose::Page::Device
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...
 
System::Drawing::Color background
 Current background 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 inherited from Aspose::Page::Device
static System::Drawing::Size DefaultSize
 
static System::String VERSION
 Current device version. More...
 

Detailed Description

Class incapsulating image composing device.

Deprecated:
ImageDevice class is deprecated beginning from 24.3. Please use SaveAsImage method in XpsDocument class instead. In 24.6 this class will be entirely hidden False

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()

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 
)
overrideprotectedvirtual

Reimplemented from Aspose::Page::Device.

◆ ClosePage()

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

Accomplishes the page.

Implements Aspose::Page::IMultiPageDevice.

◆ ClosePartition()

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

Accomplished the document partition.

Implements Aspose::Page::IMultiPartitionDevice.

◆ Create()

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

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

Returns
The new device instance.

Reimplemented from Aspose::Page::Device.

◆ Dispose()

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

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

Reimplemented from Aspose::Page::Device.

◆ Draw()

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

Draws the specified path.

Parameters
pathThe path to draw.

Reimplemented from Aspose::Page::Device.

◆ DrawString() [1/2]

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

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]

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 
)
overrideprotectedvirtual

Reimplemented from Aspose::Page::Device.

◆ EndDocument()

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

Accomplishes the document.

Reimplemented from Aspose::Page::Device.

◆ Fill()

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

Fills the specified path.

Parameters
pathThe path to fill.

Reimplemented from Aspose::Page::Device.

◆ get_Background()

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

Gets/sets the background color.

Reimplemented from Aspose::Page::Device.

◆ get_CurrentPageNumber()

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

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

Implements Aspose::Page::IMultiPageDevice.

◆ get_CurrentRelativePageNumber()

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

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

Implements Aspose::Page::IMultiPartitionDevice.

◆ get_Font()

ASPOSE_PAGE_SHARED_API System::SharedPtr<BaseTrFont> Aspose::Page::XPS::Presentation::Image::ImageDevice::get_Font ( )
overrideprotectedvirtual

Gets/sets the current font.

Reimplemented from Aspose::Page::Device.

◆ get_Opacity()

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

Gets/sets the opacity.

Reimplemented from Aspose::Page::Device.

◆ get_OpacityMask()

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

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

Reimplemented from Aspose::Page::Device.

◆ get_Paint()

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

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()

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

Gets/sets the device media size.

Reimplemented from Aspose::Page::Device.

◆ get_Stroke()

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

Gets/sets the stroke for drawing paths.

Reimplemented from Aspose::Page::Device.

◆ GetFinalWrittenLength()

ASPOSE_PAGE_SHARED_API int64_t Aspose::Page::XPS::Presentation::Image::ImageDevice::GetFinalWrittenLength ( )
overrideprotectedvirtual

Reimplemented from Aspose::Page::Device.

◆ GetTransform()

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

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 ( )
overridevirtual

Initializes numbers of pages to output.

Implements Aspose::Page::IMultiPageDevice.

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION()

Aspose::Page::XPS::Presentation::Image::ImageDevice::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( ImageDevice  ,
CODEPORTING_ARGS(System::SharedPtr< ImageDevice > device)   
)
protected

◆ OpenPage() [1/2]

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

Starts a new page with the specifies title.

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

Implements Aspose::Page::IMultiPageDevice.

◆ OpenPage() [2/2]

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

Starts a new page with the specified width and height.

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

Implements Aspose::Page::IMultiPageDevice.

◆ OpenPartition()

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

Starts a new document partition.

Implements Aspose::Page::IMultiPartitionDevice.

◆ ReNew()

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

Sets the devices to the initial state.

Reimplemented from Aspose::Page::Device.

◆ Reset()

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

Resets the device.

Reimplemented from Aspose::Page::Device.

◆ Rotate()

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

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()

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

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()

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

Gets/sets the background color.

Reimplemented from Aspose::Page::Device.

◆ set_Font()

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

Gets/sets the current font.

Reimplemented from Aspose::Page::Device.

◆ set_Opacity()

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

Gets/sets the opacity.

Reimplemented from Aspose::Page::Device.

◆ set_OpacityMask()

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

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

Reimplemented from Aspose::Page::Device.

◆ set_Paint()

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

Gets/sets the brush for filling paths.

Reimplemented from Aspose::Page::Device.

◆ set_SaveOptions()

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

Initializes save options.

Reimplemented from Aspose::Page::Device.

◆ set_Size()

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

Gets/sets the device media size.

Reimplemented from Aspose::Page::Device.

◆ set_Stroke()

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

Gets/sets the stroke for drawing paths.

Reimplemented from Aspose::Page::Device.

◆ SetClip()

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

Adds the specified path to the current clip path.

Parameters
clipPathThe clip path to be added.

Reimplemented from Aspose::Page::Device.

◆ SetTransform()

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

Sets the current transformation matrix.

Parameters
transformThe new transformation matrix.

Reimplemented from Aspose::Page::Device.

◆ Shear()

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

Applies the specified shear vector to the current transformation matrix.

Parameters
shxThe x shear factor.
shyThe y shear factor.

Reimplemented from Aspose::Page::Device.

◆ StartDocument()

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

Starts the document.

Reimplemented from Aspose::Page::Device.

◆ Transform()

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

Multiplies the current transformation matrix by the specified Matrix.

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

Reimplemented from Aspose::Page::Device.

◆ Translate()

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

Applies the specified translation vector to the current transformation matrix.

Parameters
xThe x offset.
yThe y offset.

Reimplemented from Aspose::Page::Device.

◆ UpdatePageParameters()

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

Updates the current page parameters.

Parameters
deviceThe multipage device.

Implements Aspose::Page::IMultiPageDevice.

◆ WriteCap()

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

Writes the line cap.

Parameters
capThe line cap.

Reimplemented from Aspose::Page::Device.

◆ WriteDash()

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

Writes dash parameters.

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

Reimplemented from Aspose::Page::Device.

◆ WriteJoin()

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

Writes the line join.

Parameters
joinThe line join.

Reimplemented from Aspose::Page::Device.

◆ WriteMiterLimit()

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

Writes the miter limit.

Parameters
limitThe miter limit.

Reimplemented from Aspose::Page::Device.

◆ WritePaint() [1/4]

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

Writes the stroke brush.

Parameters
brushThe SolidBrush instance.

Reimplemented from Aspose::Page::Device.

◆ WritePaint() [2/4]

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

Writes the stroke brush.

Parameters
brushThe LinearGradientBrush instance.

Reimplemented from Aspose::Page::Device.

◆ WritePaint() [3/4]

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

Writes the stroke brush.

Parameters
brushThe TextureBrush instance.

Reimplemented from Aspose::Page::Device.

◆ WritePaint() [4/4]

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

Writes the stroke brush.

Parameters
brushThe brush.

Reimplemented from Aspose::Page::Device.

◆ WriteWidth()

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

Writes the line width.

Parameters
widthThe line width.

Reimplemented from Aspose::Page::Device.