svgdata.cxx (8718d260) svgdata.cxx (9f63b866)
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

--- 27 unchanged lines hidden (view full) ---

36//////////////////////////////////////////////////////////////////////////////
37
38using namespace ::com::sun::star;
39
40//////////////////////////////////////////////////////////////////////////////
41
42BitmapEx VCL_DLLPUBLIC convertPrimitive2DSequenceToBitmapEx(
43 const Primitive2DSequence& rSequence,
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

--- 27 unchanged lines hidden (view full) ---

36//////////////////////////////////////////////////////////////////////////////
37
38using namespace ::com::sun::star;
39
40//////////////////////////////////////////////////////////////////////////////
41
42BitmapEx VCL_DLLPUBLIC convertPrimitive2DSequenceToBitmapEx(
43 const Primitive2DSequence& rSequence,
44 const basegfx::B2DRange& rTargetRange)
44 const basegfx::B2DRange& rTargetRange,
45 const sal_uInt32 nMaximumQuadraticPixels)
45{
46 BitmapEx aRetval;
47
48 if(rSequence.hasElements())
49 {
50 // create replacement graphic from maSequence
51 // create XPrimitive2DRenderer
52 uno::Reference< lang::XMultiServiceFactory > xFactory(::comphelper::getProcessServiceFactory());

--- 18 unchanged lines hidden (view full) ---

71
72 const uno::Reference< rendering::XBitmap > xBitmap(
73 xPrimitive2DRenderer->rasterize(
74 rSequence,
75 aViewParameters,
76 aDPI.getWidth(),
77 aDPI.getHeight(),
78 aRealRect,
46{
47 BitmapEx aRetval;
48
49 if(rSequence.hasElements())
50 {
51 // create replacement graphic from maSequence
52 // create XPrimitive2DRenderer
53 uno::Reference< lang::XMultiServiceFactory > xFactory(::comphelper::getProcessServiceFactory());

--- 18 unchanged lines hidden (view full) ---

72
73 const uno::Reference< rendering::XBitmap > xBitmap(
74 xPrimitive2DRenderer->rasterize(
75 rSequence,
76 aViewParameters,
77 aDPI.getWidth(),
78 aDPI.getHeight(),
79 aRealRect,
79 500000));
80 nMaximumQuadraticPixels));
80
81 if(xBitmap.is())
82 {
83 const uno::Reference< rendering::XIntegerReadOnlyBitmap> xIntBmp(xBitmap, uno::UNO_QUERY_THROW);
84
85 if(xIntBmp.is())
86 {
87 aRetval = vcl::unotools::bitmapExFromXBitmap(xIntBmp);

--- 127 unchanged lines hidden ---
81
82 if(xBitmap.is())
83 {
84 const uno::Reference< rendering::XIntegerReadOnlyBitmap> xIntBmp(xBitmap, uno::UNO_QUERY_THROW);
85
86 if(xIntBmp.is())
87 {
88 aRetval = vcl::unotools::bitmapExFromXBitmap(xIntBmp);

--- 127 unchanged lines hidden ---