View Full Version : How to scale a QImage

14th April 2009, 17:09

How can I display a QImage in logarithmic scale?

The image is bounded by an QRectF that has positive left/right and top/bottom....

I know it is unusual, but it happens...

14th April 2009, 22:50
Anyone has an algorithm?

I see this http://www.dfanning.com/graphics_tips/logimage.html but hard to understand...

14th April 2009, 23:40
Unfortunately you'll have to recalculate the data yourself. Data in QImage is kept in a linear scale and there is nothing you can do about it. You can only use the formulas you mentioned to convert the image into linear scale.