292 |
assert( image ); |
assert( image ); |
293 |
QPainter *painter = getPainter( env, graphics ); |
QPainter *painter = getPainter( env, graphics ); |
294 |
assert( painter ); |
assert( painter ); |
|
|
|
295 |
if(composite == JNI_TRUE) |
if(composite == JNI_TRUE) |
296 |
painter->fillRect ( x, y, image->width(), image->height(), |
painter->fillRect ( x, y, image->width(), image->height(), |
297 |
QColor(bg_red, bg_green, bg_blue ) ); |
QColor(bg_red, bg_green, bg_blue ) ); |
298 |
painter->drawImage ( QPoint(x, y), *image ); |
painter->drawImage ( QPoint(x, y), *image ); |
299 |
} |
} |
300 |
|
|
370 |
QRectF *dstRect = new QRectF((qreal)dstx, (qreal)dsty, |
QRectF *dstRect = new QRectF((qreal)dstx, (qreal)dsty, |
371 |
(qreal)dstwidth, (qreal)dstheight); |
(qreal)dstwidth, (qreal)dstheight); |
372 |
|
|
373 |
QImage image = originalImage->mirrored ( (flipx == JNI_TRUE), |
QImage image; |
374 |
(flipy == JNI_TRUE) ); |
if( flipx == JNI_TRUE || flipy == JNI_TRUE) |
375 |
|
image = originalImage->mirrored ( (flipx == JNI_TRUE), |
376 |
|
(flipy == JNI_TRUE) ); |
377 |
|
else |
378 |
|
image = *originalImage; |
379 |
|
|
380 |
if(composite == JNI_TRUE) |
if(composite == JNI_TRUE) |
381 |
painter->fillRect( *dstRect, QColor(bg_red, bg_green, bg_blue ) ); |
painter->fillRect( *dstRect, QColor(bg_red, bg_green, bg_blue ) ); |
382 |
|
|