diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2009-08-14 14:49:07 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2009-08-14 14:49:07 (GMT) |
commit | 8c6ca30831818a77a6947baad63ab99cb8cd8c31 (patch) | |
tree | fed426d0d7216311cbd009a1fcd2786176478b5e /src/pngenc.h | |
parent | 142b4807d2ae7479691bd0800d28364b9857b82f (diff) | |
download | Doxygen-8c6ca30831818a77a6947baad63ab99cb8cd8c31.zip Doxygen-8c6ca30831818a77a6947baad63ab99cb8cd8c31.tar.gz Doxygen-8c6ca30831818a77a6947baad63ab99cb8cd8c31.tar.bz2 |
Release-1.5.9-20090814
Diffstat (limited to 'src/pngenc.h')
-rw-r--r-- | src/pngenc.h | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/src/pngenc.h b/src/pngenc.h deleted file mode 100644 index bb2abe4..0000000 --- a/src/pngenc.h +++ /dev/null @@ -1,58 +0,0 @@ -/****************************************************************************** - * - * - * - * - * Copyright (C) 1997-2008 by Dimitri van Heesch. - * - * Permission to use, copy, modify, and distribute this software and its - * documentation under the terms of the GNU General Public License is hereby - * granted. No representations are made about the suitability of this software - * for any purpose. It is provided "as is" without express or implied warranty. - * See the GNU General Public License for more details. - * - * Documents produced by Doxygen are derivative works derived from the - * input used in their production; they are not affected by this license. - * - */ - -#ifndef _PNGENC_H -#define _PNGENC_H -#include <qfile.h> - -typedef unsigned char Byte; - -/*! \brief Entry in the color palette of a PNG image */ -struct Color -{ - Byte red; - Byte green; - Byte blue; -}; - -/*! \brief PNG image encoder - * - * This class allows to encode a raw image to a compressed PNG. - * Use write() to save the result to disk. - */ -class PngEncoder -{ - public: - PngEncoder(Byte *rawBytes,Color *p,int w,int h,Byte d,int t); - ~PngEncoder(); - void write(const char *fileName); - - private: - // image variables - Byte *data; // pointer to the image data (one byte per pixel) - Color *palette; // pointer to the color palette - int width; // image width - int height; // image height - Byte depth; // bits per CLUT entry - int transIndex; // index of the transparant color; -1 = none - int numPixels; // total number of pixel (i.e. width * height) - Byte *dataPtr; // pointer located at the current pixel. - -}; - -#endif |