PDA

View Full Version : How to scale a QImage



lni
14th April 2009, 17:09
Hi,

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...

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

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

wysota
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.