~ubuntu-branches/ubuntu/karmic/photoprint/karmic

« back to all changes in this revision

Viewing changes to imagesource/imagesource_dither.h

  • Committer: Bazaar Package Importer
  • Author(s): Milan Zamazal
  • Date: 2007-05-01 16:32:13 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20070501163213-k0gaendx7grjlmk5
Tags: upstream-0.3.5
ImportĀ upstreamĀ versionĀ 0.3.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * imagesource_dither.h
 
3
 *
 
4
 * Supports Greyscale, RGB and CMYK data
 
5
 * Supports random access
 
6
 *
 
7
 * Copyright (c) 2004 by Alastair M. Robinson
 
8
 * Distributed under the terms of the GNU General Public License -
 
9
 * see the file named "COPYING" for more details.
 
10
 *
 
11
 */
 
12
 
 
13
#ifndef IMAGESOURCE_DITHER_H
 
14
#define IMAGESOURCE_DITHER_H
 
15
 
 
16
#include "imagesource.h"
 
17
 
 
18
class ImageSource_Dither : public ImageSource
 
19
{
 
20
        public:
 
21
        ImageSource_Dither(ImageSource *source,int bitdepth);
 
22
        ~ImageSource_Dither();
 
23
        ISDataType *GetRow(int row);
 
24
        private:
 
25
        ImageSource *source;
 
26
        int *err1;
 
27
        int *err2;
 
28
        int mask;
 
29
};
 
30
 
 
31
#endif