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

unpublished interface XHalfFloatBitmap
Base Interfaces
XHalfFloatBitmapXBitmap

XBitmap
(referenced interface's summary:)
This is a generic interface to a bitmap.
Description
Specialized interface for bitmaps containing half floats as their color components. Half floats are 16 bit wide, and some high-end GPUs already have them as supported frame buffer format.

Methods' Summary
getData Query the raw data of this bitmap. Query the raw data of this bitmap, in the format as defined by getMemoryLayout(). With the given rectangle, a subset of the whole bitmap can be queried. When querying subsets of the bitmap, the same scanline padding takes place as when the whole bitmap is requested. Note: as we currently have no 16 bit float UNO data type, the values are transported as 16 bit integers across the API (which requires casting on both sides).  
setData Set raw data of a bitmap. Set raw data of a bitmap, in the format as defined by getMemoryLayout(). With the given rectangle, a subset of the bitmap can be changed. When setting subsets of the bitmap, the same scanline padding takes place as when the whole bitmap is changed. 
setPixel Set a single pixel of the bitmap with the given color value. When setting data on volatile bitmaps, always call isValid() before, and retrieve a new memory layout via getMemoryLayout(). At least under Windows, the memory layout can change for the same bitmap, if the user e.g. switches the screen resolution. Thus, this method will throw an IllegalArgumentException, if the memory layout changed beiail">getColorSpace
XColorSpace
getColorSpace();

Description
Query the color space employed by this object
Returns
the color space the colors generated by this object are to be interpreted in.
Top of Page
./usr/share/doc/openoffice.org-dev/docs/common/ref/com/sun/star/rendering/RenderState.html0000644000000000000000000001421411637724574030505 0ustar rootroot Struct RenderState

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

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


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