14 Oct
2010
14 Oct
'10
8:49 p.m.
On Thu, 14 Oct 2010, Brian Wedde wrote:
Is there any way to get access to the data about external figures? I would like to know the pixel height/width of the actual image.
From one of my private modules:
\useexternalfigure[cnp:name][\cut!n!paste!parameter\c!name]% Is this really needed? \getfiguredimensions[cnp:name]% \edef\cut!n!paste!NOfpages {\noffigurepages}% % MkII returns dimensions in pt, MkIV returns in sp % which causes metapost to blow up. So, I use \dimexpr to convert % sp to pt. \edef\cut!n!paste!figurewidth {\the\dimexpr\figurenaturalwidth }% \edef\cut!n!paste!figureheight{\the\dimexpr\figurenaturalheight }% Aditya