forked from old/legacy-imlib2
add willems docs to the docs ........... :)
SVN revision: 3408
This commit is contained in:
parent
0883f1b746
commit
1efa0c37ea
|
@ -1808,7 +1808,10 @@ NULL.</blockquote>
|
|||
int destination_y,
|
||||
int angle_x,
|
||||
int angle_y);</font></font></tt></b></pre>
|
||||
|
||||
<blockquote>
|
||||
This function works just like imlib_blend_image_onto_image_skewed() except
|
||||
you cannot skew an image (v_angle_x and v_angle_y are 0).
|
||||
</blockquote>
|
||||
<pre><b><tt><font color="#660000"><font size=+2>void imlib_blend_image_onto_image_skewed(Imlib_Image source_image,
|
||||
char merge_alpha,
|
||||
int source_x,
|
||||
|
@ -1821,7 +1824,39 @@ NULL.</blockquote>
|
|||
int h_angle_y,
|
||||
int v_angle_x,
|
||||
int v_angle_y);</font></font></tt></b></pre>
|
||||
|
||||
<blockquote>
|
||||
This will blend the source rectangle x, y, width, height from the
|
||||
source_image onto the current image at the destination x, y location.
|
||||
<p>
|
||||
It will be rotated and scaled so that the upper right corner will be
|
||||
positioned h_angle_x pixels to the right (or left, if negative) and
|
||||
h_angle_y pixels down (from destination_[x|y]).
|
||||
<p>
|
||||
If v_angle_x and v_angle_y are not 0, the image will also be skewed
|
||||
so that the lower left corner will be positioned v_angle_x pixels to
|
||||
the right and v_angle_y pixels down.
|
||||
<p>
|
||||
The at_angle versions simply have the v_angle_x and v_angle_y set to 0
|
||||
so the rotation doesn't get skewed, and the render_..._on_drawable ones
|
||||
seem obvious enough; they do the same on a drawable.
|
||||
<p>
|
||||
Examples:
|
||||
<ul>
|
||||
<li>imlib_blend_image_onto_image_skewed(..., 0, 0, 100, 0, 0, 100);<br><br>
|
||||
will simply scale the image to be 100x100.<br><br>
|
||||
<li>imlib_blend_image_onto_image_skewed(..., 0, 0, 0, 100, 100, 0);<br><br>
|
||||
will scale the image to be 100x100, and flip it diagonally.<br><br>
|
||||
<li>imlib_blend_image_onto_image_skewed(..., 100, 0, 0, 100, -100, 0);<br><br>
|
||||
will scale the image and rotate it 90 degrees clockwise.<br><br>
|
||||
<li>imlib_blend_image_onto_image_skewed(..., 50, 0, 50, 50, -50, 50);<br><br>
|
||||
will rotate the image 45 degrees clockwise, and will scale it so its
|
||||
corners are at (50,0)-(100,50)-(50,100)-(0,50) i.e. it fits into
|
||||
the 100x100 square, so it's scaled down to 70.7% (sqrt(2)/2).<br><br>
|
||||
<li>imlib_blend_image_onto_image_skewed(..., 50, 50, 100 * cos(a), 100 * sin(a), 0);<br><br>
|
||||
will rotate the image `a' degrees, with its upper left corner at
|
||||
(50,50).<br><br>
|
||||
</ul>
|
||||
</blockquote>
|
||||
<pre><b><tt><font color="#660000"><font size=+2>void imlib_render_image_on_drawable_skewed(int source_x,
|
||||
int source_y,
|
||||
int source_width,
|
||||
|
@ -1832,7 +1867,10 @@ NULL.</blockquote>
|
|||
int h_angle_y,
|
||||
int v_angle_x,
|
||||
int v_angle_y);</font></font></tt></b></pre>
|
||||
|
||||
<blockquote>
|
||||
This works just like imlib_blend_image_onto_image_skewed(), except it blends
|
||||
the image onto the current drawable instead of the current image.
|
||||
</blockquote>
|
||||
<pre><b><tt><font color="#660000"><font size=+2>void imlib_render_image_on_drawable_at_angle(int source_x,
|
||||
int source_y,
|
||||
int source_width,
|
||||
|
@ -1841,7 +1879,10 @@ NULL.</blockquote>
|
|||
int destination_y,
|
||||
int angle_x,
|
||||
int angle_y);</font></font></tt></b></pre>
|
||||
|
||||
<blockquote>
|
||||
This function works just like imlib_render_image_on_drawable_skewed() except
|
||||
you cannot skew an image (v_angle_x and v_angle_y are 0).
|
||||
</blockquote>
|
||||
<pre><b><tt><font color="#660000"><font size=+2>void imlib_image_filter(void);</font></font></tt></b></pre>
|
||||
|
||||
<pre><b><tt><font color="#660000"><font size=+2>Imlib_Filter imlib_create_filter(int initsize);</font></font></tt></b></pre>
|
||||
|
|
Loading…
Reference in New Issue