1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21#ifndef __com_sun_star_graphic_XPrimitive2DRenderer_idl__
22#define __com_sun_star_graphic_XPrimitive2DRenderer_idl__
23
24#include <com/sun/star/uno/XInterface.idl>
25#include <com/sun/star/rendering/XBitmap.idl>
26#include <com/sun/star/beans/PropertyValue.idl>
27#include <com/sun/star/geometry/RealRectangle2D.idl>
28
29module com {  module sun {  module star {  module graphic {
30
31interface XPrimitive2D;
32
33/** XPrimitive2DRenderer interface
34
35    This interface allows to convert from a sequence of XPrimitive2Ds
36    to a XBitmap
37 */
38interface XPrimitive2DRenderer : ::com::sun::star::uno::XInterface
39{
40    /** return rasterized version of given XPrimitive2D
41
42		@param Primitive2DSequence
43            The graphic content description
44
45		@param aViewInformationSequence
46            The ViewInformation2D
47
48		@param DPI_X
49			The horizontal resolution of the callers device in pixel per inch. This
50            value is needed to calculate the correct dimensions of the graphic to be
51            rasterized. If a value of <value>0</value> is given, a horizontal default
52            resolution of 72 DPI is used.
53
54		@param DPI_Y
55			The vertical resolution of the callers device in pixel per inch. This
56            value is needed to calculate the correct dimensions of the graphic to be
57            rasterized. If a value of <value>0</value> is given, a vertical default
58            resolution of 72 DPI is used.
59
60        @param Range
61			The range in 1/100th mm of the graphic to be rasterized
62
63        @param MaximumQuadraticPixels
64            The maximum allowed number of pixels to be used to allow limiting the
65            possible size of used pixels. The AspectRatio is preserved, the result
66            gets limited to given number. If a value of 0 is given, a default of
67            500000 is used.
68     */
69	com::sun::star::rendering::XBitmap rasterize(
70        [in] sequence< XPrimitive2D > Primitive2DSequence,
71        [in] sequence< ::com::sun::star::beans::PropertyValue > aViewInformationSequence,
72        [in] unsigned long DPI_X,
73        [in] unsigned long DPI_Y,
74        [in] ::com::sun::star::geometry::RealRectangle2D Range,
75        [in] unsigned long MaximumQuadraticPixels);
76};
77
78}; }; }; };
79
80#endif
81