From 6631cc554557c56000e0b87d595493b36e6fb7da Mon Sep 17 00:00:00 2001 From: Chris Sherlock Date: Tue, 13 Mar 2018 15:38:44 +1100 Subject: vcl: migrated BitmapProcessor and scale classes to BitmapFilterEx classes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I0530824cdefb3c714d2664988f887d123e471840 Reviewed-on: https://gerrit.libreoffice.org/52898 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- vcl/inc/BitmapScaleSuperFilter.hxx | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 vcl/inc/BitmapScaleSuperFilter.hxx (limited to 'vcl/inc/BitmapScaleSuperFilter.hxx') diff --git a/vcl/inc/BitmapScaleSuperFilter.hxx b/vcl/inc/BitmapScaleSuperFilter.hxx new file mode 100644 index 000000000000..3b403015a5c9 --- /dev/null +++ b/vcl/inc/BitmapScaleSuperFilter.hxx @@ -0,0 +1,41 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +#ifndef INCLUDED_VCL_INC_BITMAPSCALESUPER_HXX +#define INCLUDED_VCL_INC_BITMAPSCALESUPER_HXX + +#include + +class BitmapScaleSuperFilter : public BitmapFilter +{ +public: + BitmapScaleSuperFilter(const double& rScaleX, const double& rScaleY); + virtual ~BitmapScaleSuperFilter() override; + + virtual BitmapEx execute(BitmapEx const& rBitmap) override; + +private: + double mrScaleX; + double mrScaleY; + +}; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit