
On 11-Feb-2014 10:44, mathog wrote:
Hmm, "save as" operations that go through cairo never enter SPImage::print, and do output correctly. Now to find where those are going and compare the code in the two.
The only other file type that goes through SPImage::print is LaTEX. Cairo seems to ignore this aspect stuff totally. I think what is happening here is that before the recent work on aspect the value of this->aspect_align in this method was always 0, so no attempt was made to handle the aspect issue. Now that that value is no longer 0 EMF,WMF, and LaTEX output is going through the other section, which does try to handle aspect, but apparently never worked. Inkscape's current handling of preserveAspectRatio (interactively) is that it forces the _entire_ image to be inscribed in one manner or another into a rectangle. Depending on the mode, the alignment within that rectangle changes. The current code in SPImage::print is not doing that at all, it is moving a subpixel array around inside the full image.
Oh well, at least I see where and what the problem is now.
Regards,
David Mathog mathog@...1176... Manager, Sequence Analysis Facility, Biology Division, Caltech