boolean |
initializeData( |
[in] ::com::sun::star::io::XInputStream |
DataStream, |
| [in] unsigned long |
DPI_X, |
| [in] unsigned long |
DPI_Y, |
| [out] ::com::sun::star::awt::Size |
DefaultSizePixel ); |
- Description
- Initializing the rasterizer
This method could also be used to determine, if
the provided data is able to be rasterized by the
implementation. The implementation should take care of
this feature as well as setting the default image size in
pixel within the given output parameter.
- Parameter DataStream
- The input stream of data that should be rasterized
- Parameter DPI_X
- The horizontal resolution of the callers device in pixel per inch. This
value is needed to calculate the correct dimensions of the graphic to be
rasterized. If a value of 0 is given, a horizontal default
resolution of 72 DPI is used.
- Parameter DPI_Y
- The vertical resolution of the callers device in pixel per inch. This
value is needed to calculate the correct dimensions of the graphic to be
rasterized. If a value of 0 is given, a vertical default
resolution of 72 DPI is used.
- Parameter DefaultSizePixel
- The default rendering size in pixel of the underlying graphics
data may be available after the call via this output parameter.
In case no default size can be determined during initialization,
a default pixel size of 0,0 is returned. In this case, the caller
needs to assume a default pixel size, appropriate for the calling
context.
- Returns
- A boolean value indicating if rasterizing of the given data is
possible at all and if the initialization process happened
successfully.
- See also
- ::com::sun::star::io::XInputStream, ::com::sun::star::awt::Size
|