blob: 65328233be9b865fd330aef0f14542b97ef1272a [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<section xml:id="distort-instruction"
xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en"
xmlns:xi="http://www.w3.org/2001/XInclude">
<title>distort</title>
<indexterm>
<primary>distort</primary>
</indexterm>
<para>Sets the given affine transformation matrix to the layer. Unlike
transform, this operation is independent of any previously sent
transformation matrix. This operation can be undone by setting the
layer's transformation matrix to the identity matrix using
distort</para>
<variablelist>
<varlistentry>
<term><parameter>layer</parameter></term>
<listitem>
<para>The layer to distort.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>a</parameter></term>
<listitem>
<para>The matrix value in row 1, column 1.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>b</parameter></term>
<listitem>
<para>The matrix value in row 2, column 1.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>c</parameter></term>
<listitem>
<para>The matrix value in row 1, column 2.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>d</parameter></term>
<listitem>
<para>The matrix value in row 2, column 2.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>e</parameter></term>
<listitem>
<para>The matrix value in row 1, column 3.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>f</parameter></term>
<listitem>
<para>The matrix value in row 2, column 3.</para>
</listitem>
</varlistentry>
</variablelist>
</section>