[Qt-interest] QBrush transform on pdf

Marco Hugentobler marco at hugis.net
Fri Dec 11 10:06:11 CET 2009


Hi all

I'm setting a QTransform object to QBrush to scale the image texture, like 
this:

QTransform brushTransform;
brushTransform.scale(1.0 / context.rasterScaleFactor(), 1.0 / 
context.rasterScaleFactor());
mBrush.setTextureImage(textureImage);
mBrush.setTransform(brushTransform);

This works when drawing with QPainter to QImage, post script and svg. However, 
it does not work with the pdf print engine. The image does not gets scaled on 
PDF. Is this a known issue?

I'm using Qt 4.5.2 on Linux.

Thanks,
Marco


-- 
Dr. Marco Hugentobler
HUGIS - GIS programming and consulting
Webereistrasse 66
CH-8134 Adliswil
marco at hugis.net
http://homepage.hispeed.ch/hugis
Technical Advisor QGIS Project Steering Committee



More information about the Qt-interest-old mailing list