28 for (
int i=0; i<256; i++) {
35 QPainter painter(
this);
37 QRegion rgn =
event->region();
38 QVector<QRect> rects = rgn.rects();
40 foreach(QRect rect, rects) {
96 return QSize(128,128);
103 int width =
m_Data->get_Width();
104 int height =
m_Data->get_Height();
105 double *data =
m_Data->data();
108 m_DataImage = QImage(width, height, QImage::Format_ARGB32_Premultiplied);
110 for (
int row=0; row<height; row++) {
113 for (
int col=0; col<width; col++) {
114 double val = *data++;
134 QScrollArea *sa =
new QScrollArea();
138 sa -> setWidget(res);
140 tw->insertTab(1, sa,
"Image");
virtual void printMessage(QString msg, QDateTime ts=QDateTime::currentDateTime())=0
QcepApplication * g_Application
QSharedPointer< QcepMaskData > QcepMaskDataPtr
QSharedPointer< QcepDoubleImageData > QcepDoubleImageDataPtr