<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.spheredev.org/index.php?action=history&amp;feed=atom&amp;title=Legacy%3AFunctions%2FImages</id>
	<title>Legacy:Functions/Images - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.spheredev.org/index.php?action=history&amp;feed=atom&amp;title=Legacy%3AFunctions%2FImages"/>
	<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=Legacy:Functions/Images&amp;action=history"/>
	<updated>2026-11-08T01:02:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>http://wiki.spheredev.org/index.php?title=Legacy:Functions/Images&amp;diff=482&amp;oldid=prev</id>
		<title>Apollolux: created</title>
		<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=Legacy:Functions/Images&amp;diff=482&amp;oldid=prev"/>
		<updated>2013-05-22T17:34:23Z</updated>

		<summary type="html">&lt;p&gt;created&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Images ==&lt;br /&gt;
&lt;br /&gt;
* Sphere [[API:Image|Image]] object: Holds a 2D bitmap for displaying.&lt;br /&gt;
* [[API:LoadImage|LoadImage]](&amp;#039;&amp;#039;filename&amp;#039;&amp;#039;): Load an image from &amp;#039;&amp;#039;filename&amp;#039;&amp;#039;.&lt;br /&gt;
* [[API:GrabImage|GrabImage]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;width&amp;#039;&amp;#039;, &amp;#039;&amp;#039;height&amp;#039;&amp;#039;): Grab the screen contents at (&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;width&amp;#039;&amp;#039;, &amp;#039;&amp;#039;height&amp;#039;&amp;#039;) and store it in a new Image object.&lt;br /&gt;
&lt;br /&gt;
=== System images ===&lt;br /&gt;
&lt;br /&gt;
* [[API:GetSystemArrow|GetSystemArrow]](): Get the right-pointing arrow image that comes with the Sphere engine.&lt;br /&gt;
* [[API:GetSystemUpArrow|GetSystemUpArrow]](): Get the up-pointing arrow image that comes with the Sphere engine.&lt;br /&gt;
* [[API:GetSystemDownArrow|GetSystemDownArrow]](): Get the down-pointing arrow image that comes with the Sphere engine.&lt;br /&gt;
&lt;br /&gt;
=== Image object ===&lt;br /&gt;
&lt;br /&gt;
* [[API:Image/clone|Image.clone]](): returns a copy of &amp;#039;image_object&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Blitting (drawing) images ====&lt;br /&gt;
&lt;br /&gt;
* [[API:Image/blit|Image.blit]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;): Draw the image with the top-left corner at (&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;).&lt;br /&gt;
* [[API:Image/blitMask|Image.blitMask]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;mask&amp;#039;&amp;#039;): Draw the image at (&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;) with &amp;#039;&amp;#039;mask&amp;#039;&amp;#039; as the tinting color.&lt;br /&gt;
* [[API:Image/rotateBlit|Image.rotateBlit]](&amp;#039;&amp;#039;center_x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;center_y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;angle&amp;#039;&amp;#039;): Draw the image centered at (&amp;#039;&amp;#039;center_x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;center_y&amp;#039;&amp;#039;), rotated by &amp;#039;&amp;#039;angle&amp;#039;&amp;#039; radians.&lt;br /&gt;
* [[API:Image/rotateBlitMask|Image.rotateBlitMask]](&amp;#039;&amp;#039;center_x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;center_y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;angle&amp;#039;&amp;#039;, &amp;#039;&amp;#039;mask&amp;#039;&amp;#039;): [[API:Image/rotateBlit|rotateBlit]] + mask.&lt;br /&gt;
* [[API:Image/zoomBlit|Image.zoomBlit]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;factor&amp;#039;&amp;#039;): Draw the image zoomed by &amp;#039;&amp;#039;factor&amp;#039;&amp;#039; with the top-left corner at (&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;).&lt;br /&gt;
* [[API:Image/zoomBlitMask|Image.zoomBlitMask]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;factor&amp;#039;&amp;#039;, &amp;#039;&amp;#039;mask&amp;#039;&amp;#039;): [[API:Image/zoomBlit|zoomBlit]] + mask.&lt;br /&gt;
* [[API:Image/transformBlit|Image.transformBlit]](&amp;#039;&amp;#039;x1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x3&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y3&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x4&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y4&amp;#039;&amp;#039;): Draw the image with top-left (&amp;#039;&amp;#039;x1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y1&amp;#039;&amp;#039;), top-right (&amp;#039;&amp;#039;x2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y2&amp;#039;&amp;#039;), bottom-right (&amp;#039;&amp;#039;x3&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y3&amp;#039;&amp;#039;) and bottom-left (&amp;#039;&amp;#039;x4&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y4&amp;#039;&amp;#039;).&lt;br /&gt;
* [[API:Image/transformBlitMask|Image.transformBlitMask]](&amp;#039;&amp;#039;x1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x3&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y3&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x4&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y4&amp;#039;&amp;#039;, &amp;#039;&amp;#039;mask&amp;#039;&amp;#039;): Draw the image stretched to fit 4 coordinates clockwise from the top-left, with a masking color.&lt;br /&gt;
&lt;br /&gt;
==== Surface conversion ====&lt;br /&gt;
&lt;br /&gt;
* [[API:Image/createSurface|Image.createSurface]](): Create a new [[API:Surface|Surface]] using the picture data in the image.&lt;/div&gt;</summary>
		<author><name>Apollolux</name></author>
	</entry>
</feed>