20#include "KPrPixmapObjectIface.h"
21#include "KPrPixmapObject.h"
24#include <tdeapplication.h>
25#include <dcopclient.h>
27KPrPixmapObjectIface::KPrPixmapObjectIface( KPrPixmapObject *_obj )
28 : KPrObject2DIface(_obj)
33TQString KPrPixmapObjectIface::fileName()
const
35 return obj->getFileName();
38bool KPrPixmapObjectIface::swapRGB()
const
40 return obj->getPictureSwapRGB();
43bool KPrPixmapObjectIface::grayscale()
const
45 return obj->getPictureGrayscal();
48int KPrPixmapObjectIface::depth()
const
50 return obj->getPictureDepth();
53int KPrPixmapObjectIface::pictureMirrorType()
const
55 return obj->getPictureMirrorType();
58int KPrPixmapObjectIface::brightness()
const
60 return obj->getPictureBright();
63void KPrPixmapObjectIface::setDepth(
int depth )
65 obj->setPictureDepth(depth);
68void KPrPixmapObjectIface::setBrightness(
int bright )
70 obj->setPictureBright(bright);
73void KPrPixmapObjectIface::setSwapRGB(
bool swapRGB )
75 obj->setPictureSwapRGB(swapRGB);
78void KPrPixmapObjectIface::setGrayscale(
bool grayscal )
80 obj->setPictureGrayscal(grayscal);
83void KPrPixmapObjectIface::loadImage(
const TQString & fileName )
85 obj->loadPicture(fileName);
88void KPrPixmapObjectIface::setPictureMirrorType(
const TQString & _mirror)
90 if ( _mirror.lower()==
"normal")
91 obj->setPictureMirrorType( PM_NORMAL);
92 else if ( _mirror.lower()==
"horizontal")
93 obj->setPictureMirrorType( PM_HORIZONTAL );
94 else if ( _mirror.lower()==
"vertical")
95 obj->setPictureMirrorType( PM_VERTICAL );
96 else if ( _mirror.lower()==
"horizontalandvertical")
97 obj->setPictureMirrorType( PM_HORIZONTALANDVERTICAL );
99 kdDebug(33001)<<
" Error in setPictureMirrorType :"<<_mirror<<endl;