Language:

The Free and Open Productivity Suite
Apache OpenOffice 4.1.4 released

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous


:: com :: sun :: star :: rendering ::

struct RenderState
Description
This structure contains information passed to each XCanvas render operation.

This structure contains information considered as the render state, i.e. the common setup required to render each individual XCanvas primitive.

Since
OOo 2.0

Elements' Summary
AffineTransform The affine transform associated with this render operation. 
Clip The clipping area associated with this render operation. 
DeviceColor The device color associated with this render operation. 
CompositeOperation The composition mode associated with this render operation. 
Elements' Details
AffineTransform
::com::sun::star::geometry::AffineMatrix2D AffineTransform;
Description
The affine transform associated with this render operation.

This is used to transform coordinates of canvas primitives from user space to view space (from which they are subsequently transformed to device space by the view transform).

Clip
XPolyPolygon2D Clip;
Description
The clipping area associated with this render operation.

This clipping is interpreted in the user coordinate system, i.e. subject to the render state transform followed by the view transform before mapped to device coordinate space.

Specifying an empty interface denotes no clipping, i.e. everything rendered to the canvas will be visible (subject to device-dependent constraints, of course). Specifying an empty XPolyPolygon2D, i.e. a poly-polygon containing zero polygons, or an XPolyPolygon2D with any number of empty sub-polygons, denotes the NULL clip. That means, nothing rendered to the canvas will be visible.

DeviceColor
sequence< ColorComponent > DeviceColor;
Description
The device color associated with this render operation.

Note that this need not be RGB here, but depends on the active device color space.

See also
XGraphicDevice, XColorSpace
CompositeOperation
byte CompositeOperation;
Description
The composition mode associated with this render operation.

The composite mode determines in which way the primitive and possibly existing background is combined. The permissible values must be one out of the CompositeOperation constants.

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache and the Apache feather logo are trademarks of The Apache Software Foundation. OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.