[poppler] Refactoring out coordinate transformation logic in Splash::drawImage

Albert Astals Cid aacid at kde.org
Mon Jun 27 11:25:42 PDT 2011


A Monday, June 27, 2011, Stephen Reichling va escriure:
> As Josh mentioned last week, we are working on extracting the smaller
> component images from the splash background image and referencing them
> individually in the html. In order to do this, we need to compute each
> component image's bounding box in the coordinate system of the device
> space. Currently the code which does so is a small part of the
> Splash::drawImage function.
> 
> In order to get access to these coordinates, we would like to refactor out
> the coordinate transformation logic into a separate, public function
> within Splash that the drawImage function as well as our new pdftohtml
> code can utilize. I think this would not only help us in our goal but also
> improve the code quality of the drawImage function by reducing its rather
> large length.
> 
> Please let me know if this change is going to cause anyone else any
> problems.

The explanation you gave seems good, now let's see the code :-)

Albert

> 
> Thank you,
> 
> Stephen


More information about the poppler mailing list