"Fossies" - the Fresh Open Source Software Archive

Member "src/imageloaderinterface.h" (28 Sep 2008, 2151 Bytes) of package /windows/misc/PosteRazor-1.9.5-Source.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "imageloaderinterface.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2     PosteRazor - Make your own poster!
    3     Copyright (C) 2005-2008 by Alessandro Portale
    4     http://posterazor.sourceforge.net/
    5 
    6     This file is part of PosteRazor
    7 
    8     PosteRazor is free software; you can redistribute it and/or modify
    9     it under the terms of the GNU General Public License as published by
   10     the Free Software Foundation, either version 3 of the License, or
   11     (at your option) any later version.
   12 
   13     PosteRazor is distributed in the hope that it will be useful,
   14     but WITHOUT ANY WARRANTY; without even the implied warranty of
   15     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   16     GNU General Public License for more details.
   17 
   18     You should have received a copy of the GNU General Public License
   19     along with PosteRazor; if not, write to the Free Software
   20     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
   21 */
   22 
   23 #ifndef IMAGELOADERINTERFACE_H
   24 #define IMAGELOADERINTERFACE_H
   25 
   26 #include "types.h"
   27 #include <QRgb>
   28 #include <QImage>
   29 #include <QSize>
   30 
   31 class PainterInterface;
   32 
   33 class ImageLoaderInterface
   34 {
   35 public:
   36     virtual ~ImageLoaderInterface() {};
   37 
   38     virtual bool loadInputImage(const QString &imageFileName, QString &errorMessage) = 0;
   39     virtual bool isImageLoaded() const = 0;
   40     virtual bool isJpeg() const = 0;
   41     virtual QString fileName() const = 0;
   42     virtual QSize sizePixels() const = 0;
   43     virtual double horizontalDotsPerUnitOfLength(Types::UnitsOfLength unit) const = 0;
   44     virtual double verticalDotsPerUnitOfLength(Types::UnitsOfLength unit) const = 0;
   45     virtual QSizeF size(Types::UnitsOfLength unit) const = 0;
   46     virtual const QImage imageAsRGB(const QSize &size) const = 0;
   47     virtual int bitsPerPixel() const = 0;
   48     virtual Types::ColorTypes colorDataType() const = 0;
   49     virtual const QByteArray bits() const = 0;
   50     virtual const QVector<QRgb> colorTable() const = 0;
   51     virtual const QVector<QPair<QStringList, QString> > &imageFormats() const = 0;
   52     virtual QString libraryName() const = 0;
   53     virtual QString libraryAboutText() const = 0;
   54 };
   55 
   56 #endif // IMAGELOADERINTERFACE_H