LibreOffice Module canvas (master) 1
ogl_bitmapcanvashelper.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 */
9
10#include <sal/config.h>
11
13
15
16
17using namespace ::com::sun::star;
18
19namespace oglcanvas
20{
22 {}
23
25 {
27 }
28
29 void BitmapCanvasHelper::init( rendering::XGraphicDevice& rDevice,
30 SpriteDeviceHelper& rDeviceHelper,
31 const geometry::IntegerSize2D& rSize )
32 {
33 maSize = rSize;
34 CanvasHelper::init(rDevice,rDeviceHelper);
35 }
36
37 uno::Reference< rendering::XBitmap > BitmapCanvasHelper::getScaledBitmap( const geometry::RealSize2D& /*newSize*/,
38 bool /*beFast*/ )
39 {
40 // TODO(F1):
41 return uno::Reference< rendering::XBitmap >();
42 }
43
44 uno::Sequence< sal_Int8 > BitmapCanvasHelper::getData( rendering::IntegerBitmapLayout& /*bitmapLayout*/,
45 const geometry::IntegerRectangle2D& /*rect*/ )
46 {
47 // TODO(F2): NYI - and improbable to ever be
48 return uno::Sequence< sal_Int8 >();
49 }
50
51 uno::Sequence< sal_Int8 > BitmapCanvasHelper::getPixel( rendering::IntegerBitmapLayout& /*bitmapLayout*/,
52 const geometry::IntegerPoint2D& /*pos*/ )
53 {
54 // TODO(F2): NYI - and improbable to ever be
55 return uno::Sequence< sal_Int8 >();
56 }
57
58 rendering::IntegerBitmapLayout BitmapCanvasHelper::getMemoryLayout() const
59 {
61 }
62
63}
64
65/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Sequence< sal_Int8 > getPixel(css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerPoint2D &pos)
void disposing()
Release all references.
css::geometry::IntegerSize2D maSize
css::rendering::IntegerBitmapLayout getMemoryLayout() const
css::uno::Sequence< sal_Int8 > getData(css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerRectangle2D &rect)
void init(css::rendering::XGraphicDevice &rDevice, SpriteDeviceHelper &rDeviceHelper, const css::geometry::IntegerSize2D &rSize)
Initialize canvas helper.
const css::geometry::IntegerSize2D & getSize() const
css::uno::Reference< css::rendering::XBitmap > getScaledBitmap(const css::geometry::RealSize2D &newSize, bool beFast)
void init(css::rendering::XGraphicDevice &rDevice, SpriteDeviceHelper &rDeviceHelper)
Initialize canvas helper.
void disposing()
Release all references.
rendering::IntegerBitmapLayout getStdMemoryLayout(const geometry::IntegerSize2D &rBmpSize)