00001 #ifndef JpgWriter_H 00002 #define JpgWriter_H 00003 /*######################################################################## 00004 File: JpgWriter.h 00005 Creation date: 6th June 2002 00006 00007 Copyright 2002 Mark Williams, all rights reserved. 00008 Contact: mark@extrabit.com 00009 http://www.extrabit.com 00010 00011 This program is free software; you can redistribute it and/or 00012 modify it under the terms of the GNU General Public License 00013 as published by the Free Software Foundation; either version 2 00014 of the License, or (at your option) any later version. 00015 00016 This program is distributed in the hope that it will be useful, 00017 but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 GNU General Public License for more details. 00020 00021 ########################################################################*/ 00022 00023 /*######################################################################## 00024 Headers 00025 ########################################################################*/ 00026 00027 #include "rgbcolour.h" 00028 00029 /*######################################################################## 00030 Declarations 00031 ########################################################################*/ 00032 00033 /*######################################################################## 00034 Class Definition 00035 ########################################################################*/ 00036 00040 class JpgWriter 00041 { 00042 public: 00043 JpgWriter (int quality) ; 00044 void write_image (CString path, int width, int height, const rgbcolour_t* rgb_data) ; 00045 00046 private: 00047 int m_quality ; 00048 } ; 00049 00050 00051 /*######################################################################## 00052 End 00053 ########################################################################*/ 00054 #endif
1.2.16