A full mipmap chain will be created in script memory. The Type of the Allocation will contain a full mipmap chain. On upload, the full chain will be transferred.
The Type of the Allocation will be the same as MIPMAP_NONE. It will not contain mipmaps. On upload, the allocation data will contain a full mipmap chain generated from the top level in script memory.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# Allocation.MipmapControl\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nMipmapControl\n=============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/renderscript/Allocation.MipmapControl \"View this page in Java\") \n\n```\nclass MipmapControl\n```\n\n|---|---|----------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[android.renderscript.Allocation.MipmapControl](#)\\\u003e ||\n| | ↳ | [android.renderscript.Allocation.MipmapControl](#) |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [Allocation.MipmapControl.MIPMAP_FULL](#ENUM_VALUE:MIPMAP_FULL), [Allocation.MipmapControl.MIPMAP_NONE](#ENUM_VALUE:MIPMAP_NONE), [Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE](#ENUM_VALUE:MIPMAP_ON_SYNC_TO_TEXTURE) |---------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------| | [Allocation.MipmapControl.MIPMAP_FULL](#ENUM_VALUE:MIPMAP_FULL) | A full mipmap chain will be created in script memory. | | [Allocation.MipmapControl.MIPMAP_NONE](#ENUM_VALUE:MIPMAP_NONE) | No mipmaps will be generated and the type generated from the incoming bitmap will not contain additional LODs. | | [Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE](#ENUM_VALUE:MIPMAP_ON_SYNC_TO_TEXTURE) | The Type of the Allocation will be the same as MIPMAP_NONE. | |\n\n*** ** * ** ***\n\n| **This enum was deprecated in API level 31.**\n|\n| Deprecated in Java.\n\nControls mipmap behavior when using the bitmap creation and update functions.\n\nSummary\n-------\n\n| Enum values ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [MIPMAP_FULL](#ENUM_VALUE:MIPMAP_FULL) A full mipmap chain will be created in script memory. |\n| [MIPMAP_NONE](#ENUM_VALUE:MIPMAP_NONE) No mipmaps will be generated and the type generated from the incoming bitmap will not contain additional LODs. |\n| [MIPMAP_ON_SYNC_TO_TEXTURE](#ENUM_VALUE:MIPMAP_ON_SYNC_TO_TEXTURE) The Type of the Allocation will be the same as MIPMAP_NONE. |\n\nEnum values\n-----------\n\n### MIPMAP_FULL\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val MIPMAP_FULL : Allocation.MipmapControl\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nA full mipmap chain will be created in script memory. The Type of the Allocation will contain a full mipmap chain. On upload, the full chain will be transferred. \n\n### MIPMAP_NONE\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val MIPMAP_NONE : Allocation.MipmapControl\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nNo mipmaps will be generated and the type generated from the incoming bitmap will not contain additional LODs. \n\n### MIPMAP_ON_SYNC_TO_TEXTURE\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val MIPMAP_ON_SYNC_TO_TEXTURE : Allocation.MipmapControl\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThe Type of the Allocation will be the same as MIPMAP_NONE. It will not contain mipmaps. On upload, the allocation data will contain a full mipmap chain generated from the top level in script memory."]]