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
,
44 const basegfx::B2DVector
& rLineWidths
,
45 basegfx::B2DLineJoin eLineJoin
,
46 css::drawing::LineCap eLineCap
,
47 double fMiterMinimumAngle
,
48 bool bPixelSnapHairline
)
50 return mpImpl
->drawPolyLine(
61 bool WinSalGraphics::blendBitmap(
62 const SalTwoRect
& rTR
,
63 const SalBitmap
& rBmp
)
65 return mpImpl
->blendBitmap(rTR
, rBmp
);
68 bool WinSalGraphics::blendAlphaBitmap(
69 const SalTwoRect
& rTR
,
70 const SalBitmap
& rSrcBmp
,
71 const SalBitmap
& rMaskBmp
,
72 const SalBitmap
& rAlphaBmp
)
74 return mpImpl
->blendAlphaBitmap(rTR
, rSrcBmp
, rMaskBmp
, rAlphaBmp
);
77 bool WinSalGraphics::drawAlphaBitmap(
78 const SalTwoRect
& rTR
,
79 const SalBitmap
& rSrcBitmap
,
80 const SalBitmap
& rAlphaBmp
)
82 return mpImpl
->drawAlphaBitmap(rTR
, rSrcBitmap
, rAlphaBmp
);
85 bool WinSalGraphics::drawTransformedBitmap(
86 const basegfx::B2DPoint
& rNull
,
87 const basegfx::B2DPoint
& rX
,
88 const basegfx::B2DPoint
& rY
,
89 const SalBitmap
& rSourceBitmap
,
90 const SalBitmap
* pAlphaBitmap
)
92 return mpImpl
->drawTransformedBitmap(rNull
, rX
, rY
,
93 rSourceBitmap
, pAlphaBitmap
);
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */