Difference between revisions of "Canvas:getFilter"

(Well, here they are now.)
 
m (Remove parent)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Gets the filter mode of the Canvas.
+
{{newin|[[0.8.0]]|080|type=function}}
 +
Gets the [[FilterMode|filter mode]] of the [[Canvas]].
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 10: Line 11:
 
{{param|FilterMode|min|Filter mode used when minifying the canvas.}}
 
{{param|FilterMode|min|Filter mode used when minifying the canvas.}}
 
{{param|FilterMode|mag|Filter mode used when magnifying the canvas.}}
 
{{param|FilterMode|mag|Filter mode used when magnifying the canvas.}}
 +
== Function ==
 +
{{newin|[[0.9.0]]|090|type=variant}}
 +
=== Synopsis ===
 +
<source lang="lua">
 +
min, mag, anisotropy = Canvas:getFilter( )
 +
</source>
 +
=== Arguments ===
 +
None.
 +
=== Returns ===
 +
{{param|FilterMode|min|Filter mode used when minifying the canvas.}}
 +
{{param|FilterMode|mag|Filter mode used when magnifying the canvas.}}
 +
{{param|number|anisotropy|Maximum amount of anisotropic filtering used.}}
 
== See Also ==
 
== See Also ==
* [[parent::Canvas]]
+
* [[Canvas]]
* [[FilterMode]]
+
* [[Canvas:setFilter]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Gets the filter mode of the Canvas.}}
+
{{#set:Description=Gets the [[FilterMode|filter mode]] of the [[Canvas]].}}
{{#set:Since=080}}
 
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Canvas:getFilter}}
 
{{i18n|Canvas:getFilter}}

Latest revision as of 00:17, 20 July 2017

Available since LÖVE 0.8.0
This function is not supported in earlier versions.

Gets the filter mode of the Canvas.

Function

Synopsis

min, mag = Canvas:getFilter( )

Arguments

None.

Returns

FilterMode min
Filter mode used when minifying the canvas.
FilterMode mag
Filter mode used when magnifying the canvas.

Function

Available since LÖVE 0.9.0
This variant is not supported in earlier versions.

Synopsis

min, mag, anisotropy = Canvas:getFilter( )

Arguments

None.

Returns

FilterMode min
Filter mode used when minifying the canvas.
FilterMode mag
Filter mode used when magnifying the canvas.
number anisotropy
Maximum amount of anisotropic filtering used.

See Also

Other Languages