Skip to main content

image_graphicx_sizer

Function image_graphicx_sizer 

Source
pub fn image_graphicx_sizer(whatsit: &mut Whatsit)
Expand description

Perl: image_graphicx_sizer($whatsit) (Util::Image L259-272).

Reads image dimensions from candidates, applies the options string (graphicx keyvals: width/height/totalheight/scale/keepaspectratio) and writes back cached_width, cached_height, cached_depth on the whatsit so downstream getSize() consumers (pgf, tikz) see the correct box dimensions.