|
From: Maxim S. <mcs...@ya...> - 2006-07-27 11:50:57
|
> FitToImageSize(m_dImageWidht,m_dImageHeight); > Stretch the image to fit a rectangle into the center of the screen. > > I suppose the resampling is the cause of the loose of dpi, right? > > If yes how is possible to retain the original resolution? > > Sorry for my question but I am starting now to understand a little of Agg. It's not the matter of AGG, it's more general, I suppose. You load a large image and resize it to be fully visible. Then you perform some transformation and save the result. Instead of this you should transform the original image in its coordinate space, and save it. And only for display purposes you make a reduced copy of the result. You should make this copy every time something is changing in the big image. McSeem __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |