Quantcast
Channel: how to get the size of a \pgfdeclareimage - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 2

how to get the size of a \pgfdeclareimage

$
0
0

Basically I want to use a TikZ node to frame a pgfimage, so later on, I will add more and connect them as I see fit.I have this:

\pgfdeclareimage[width=10em]{image1}{images/image1}\begin{tikzpicture}  \node (MM) [rectangle,draw,thick,minimum width=10.15em,label=below:Description]{\pgfbox[center,center]{\pgfuseimage{image1}}};\end{tikzpicture}

So now I need to get the height of image1 to add minimum height property in the node declaration. This way I can get a dynamic framing independent of the aspect ratio of the image. Maybe it's an easy task but I'm newbie to this and can't seem to find the information I need in the documentation.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images