1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 #include <win/wincomp.hxx>
23 #include <win/saldata.hxx>
24 #include <win/salgdi.h>
25 #include <win/salbmp.h>
27 #include "gdiimpl.hxx"
29 bool WinSalGraphics::drawPolyPolygon(
30 const basegfx::B2DHomMatrix
& rObjectToDevice
,
31 const basegfx::B2DPolyPolygon
& rPolyPolygon
,
34 return mpImpl
->drawPolyPolygon(
40 bool WinSalGraphics::drawPolyLine(
41 const basegfx::B2DHomMatrix
& rObjectToDevice
,
42 const basegfx::B2DPolygon
& rPolygon
,
45 const std::vector
< double >* pStroke
, // MM01
46 basegfx::B2DLineJoin eLineJoin
,
47 css::drawing::LineCap eLineCap
,
48 double fMiterMinimumAngle
,
49 bool bPixelSnapHairline
)
51 return mpImpl
->drawPolyLine(
63 bool WinSalGraphics::blendBitmap(
64 const SalTwoRect
& rTR
,
65 const SalBitmap
& rBmp
)
67 return mpImpl
->blendBitmap(rTR
, rBmp
);
70 bool WinSalGraphics::blendAlphaBitmap(
71 const SalTwoRect
& rTR
,
72 const SalBitmap
& rSrcBmp
,
73 const SalBitmap
& rMaskBmp
,
74 const SalBitmap
& rAlphaBmp
)
76 return mpImpl
->blendAlphaBitmap(rTR
, rSrcBmp
, rMaskBmp
, rAlphaBmp
);
79 bool WinSalGraphics::drawAlphaBitmap(
80 const SalTwoRect
& rTR
,
81 const SalBitmap
& rSrcBitmap
,
82 const SalBitmap
& rAlphaBmp
)
84 return mpImpl
->drawAlphaBitmap(rTR
, rSrcBitmap
, rAlphaBmp
);
87 bool WinSalGraphics::drawTransformedBitmap(
88 const basegfx::B2DPoint
& rNull
,
89 const basegfx::B2DPoint
& rX
,
90 const basegfx::B2DPoint
& rY
,
91 const SalBitmap
& rSourceBitmap
,
92 const SalBitmap
* pAlphaBitmap
,
95 return mpImpl
->drawTransformedBitmap(rNull
, rX
, rY
,
96 rSourceBitmap
, pAlphaBitmap
, fAlpha
);
99 bool WinSalGraphics::hasFastDrawTransformedBitmap() const
101 return mpImpl
->hasFastDrawTransformedBitmap();
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */