Difference between revisions of "CompressedData:getMipmapCount"

(Created page)
 
(Blanked page)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{newin|[[0.9.0]]|090|type=function}}
 
Gets the number of [http://en.wikipedia.org/wiki/Mipmap mipmap] levels in the CompressedData. The base mipmap level (original image) is included in the count.
 
  
== Function ==
 
=== Synopsis ===
 
<source lang="lua">
 
mipmaps = CompressedData:getMipmapCount( )
 
</source>
 
=== Arguments ===
 
None.
 
=== Returns ===
 
{{param|number|mipmaps|The number of mipmap levels stored in the CompressedData.}}
 
 
== Notes ==
 
Mipmap filtering cannot be activated for an [[Image]] created from a CompressedData which does not have enough mipmap levels to go down to 1x1. For example, a 256x256 image created from a CompressedData should have 8 mipmap levels or [[(Image):setMipmapFilter|Image:setMipmapFilter]] will error.
 
 
== See Also ==
 
* [[parent::CompressedData]]
 
* [[(Image):setMipmapFilter|Image:setMipmapFilter]]
 
[[Category:Functions]]
 
{{#set:Description=Gets the number of mipmap levels in the CompressedData.}}
 
== Other Languages ==
 
{{i18n|CompressedData:getMipmapCount}}
 

Latest revision as of 03:44, 3 October 2015