11 #ifndef __KPixmapIO_h_Included__
12 #define __KPixmapIO_h_Included__
14 #include <tdelibs_export.h>
20 struct KPixmapIOPrivate;
98 TQPixmap convertToPixmap(
const TQImage &image);
105 TQImage convertToImage(
const TQPixmap &pixmap);
114 void putImage(TQPixmap *dst,
int dx,
int dy,
const TQImage *src);
120 void putImage(TQPixmap *dst,
const TQPoint &offset,
const TQImage *src);
131 TQImage getImage(
const TQPixmap *src,
int sx,
int sy,
int sw,
int sh);
137 TQImage getImage(
const TQPixmap *src,
const TQRect &rect);
152 void setShmPolicy(
int policy);
159 void preAllocShm(
int size);
167 bo32_ARGB, bo32_BGRA, bo24_RGB, bo24_BGR,
168 bo16_RGB_565, bo16_BGR_565, bo16_RGB_555,
173 bool initXImage(
int w,
int h);
175 bool createXImage(
int w,
int h);
176 void destroyXImage();
177 bool createShmSegment(
int size);
178 void destroyShmSegment();
179 void convertToXImage(
const TQImage &);
180 TQImage convertFromXImage();
Fast TQImage to/from TQPixmap conversion.
ShmPolicies
Shared memory allocation policies.