Changes

Jump to navigation Jump to search
11 bytes removed ,  19:54, 30 March 2014
m
no edit summary
= Image transformations =
== Image Scaling images ==
To scale an image use the <tt>scale</tt> key: <tt>scale=1000</tt> corresponds to the original dimensions of the image, <tt>scale=500</tt> scales the image to 50% of the original size, <tt>scale=1500</tt> scales the images to 150% of the original size, and so on. For example:
\externalfigure[logo.pdf][yscale=500]</texcode>
== Restrict Image Dimensions Dimension Restriction ==
ConTeXt can limit included images to particular dimensions. For example, to ensure that an included image is not more than <tt>0.2\textwidth</tt>:
maxheight=0.8\textheight]</texcode>
== Rotate images Image Rotation ==
Rotate included images by 90°, 180°, or 270° using the <tt>orientation</tt> key. For example:
<texcode>\rotate[rotation=45]{\externalfigure[logo.pdf]}</texcode>
== Mirror Images Image Mirroring ==
To mirror (flip) an image, use the generic {{cmd|mirror}} command. For example, to mirror horizontally:
<texcode>\mirror{\externalfigure[logo.pdf][orientation=180]}</texcode>
== Image Clipping images ==
Clip an image using the generic {{cmd|clip}} command. For example, to clip the original image to a <tt>1cm x 2cm</tt> rectangle at an offset of <tt>(3mm,5mm)</tt> from the top left corner:
<texcode>\externalfigure[mylogo]</texcode>
= Place picture Pictures in the text Text =
You can directly place a figure in a text using <tt>\externalfigure[cow]</tt>. If you want to align it not to the baseline, but lower you can try whether <tt>\bbox{\externalfigure[cow]}</tt> does the right thing, otherwise you have to tweek <tt>\smash{\lower24pt\hbox{\externalfigure[cow]}}</tt>
= Flow text around a picture Pictures and Flowing Text =
<context source=yes>
</nowiki></pre>
== Full page images Page Image ==
* See [[Simple Cover Page]]
= Hyperlinked Picture with hyperlink =
This is an example of how to make a picture interactive. When the user clicks it, it invokes the user's browser to a given URL.
</texcode>
== See also Also ==
* [[Animation]]
419

edits

Navigation menu