imagepreview.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
#ifndef IMAGEPREVIEW_H
00021
#define IMAGEPREVIEW_H
00022
00023
#include <qwidget.h>
00024
#include <qimage.h>
00025
00026
class ImagePreview :
public QWidget
00027 {
00028
public:
00029 ImagePreview(
QWidget *parent=0,
const char *name=0);
00030 ~ImagePreview();
00031
00032
void setParameters(
int brightness,
int hue,
int saturation,
int gamma);
00033
void setImage(
const QImage& image);
00034
void setBlackAndWhite(
bool on);
00035
QSize minimumSizeHint() const;
00036
00037 private:
00038
int brightness_;
00039
int hue_;
00040
int saturation_;
00041
int gamma_;
00042
bool bw_;
00043
QImage image_;
00044
00045 protected:
00046
void paintEvent(
QPaintEvent*);
00047 };
00048
00049 #endif
This file is part of the documentation for kdeprint Library Version 3.3.1.