11#ifndef __KPixmapIO_h_Included__
12#define __KPixmapIO_h_Included__
14#include <tdelibs_export.h>
20struct KPixmapIOPrivate;
87class TDEUI_EXPORT KPixmapIO
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();
TQPixmap convertToPixmap(const TQImage &image)
Convert an image to a pixmap.
void putImage(TQPixmap *dst, int dx, int dy, const TQImage *src)
Bitblt an image onto a pixmap.
ShmPolicies
Shared memory allocation policies.
TQImage getImage(const TQPixmap *src, int sx, int sy, int sw, int sh)
Transfer (a part of) a pixmap to an image.
TQImage convertToImage(const TQPixmap &pixmap)
Convert a pixmap to an image.