Difference between revisions of "(Image):setFilter"

m
(update for love 0.6.2)
Line 1: Line 1:
Sets the filter mode for an image. 0 = linear interpolation, 1 = nearest neighbor interpolation.
+
Sets the filter mode for an image.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 6: Line 6:
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|number|min|How to scale an image down.}}
+
{{param|FilterMode|min|How to scale an image down.}}
{{param|number|mag|How to scale an image up.}}
+
{{param|FilterMode|mag|How to scale an image up.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
 
== See Also ==
 
== See Also ==
 
* [[parent::Image]]
 
* [[parent::Image]]
 +
* [[FilterMode]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Sets the filter mode for an image.}}
 
{{#set:Description=Sets the filter mode for an image.}}

Revision as of 12:27, 6 March 2010

Sets the filter mode for an image.

Function

Synopsis

Image:setFilter( min, mag )

Arguments

FilterMode min
How to scale an image down.
FilterMode mag
How to scale an image up.

Returns

Nothing.

See Also