Stay organized with collections
Save and categorize content based on your preferences.
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-05-15 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-05-15 UTC."],[],[],null,["# androidx.palette.graphics\n=========================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/palette/graphics/package-summary \"View this page in Kotlin\") \\|Java\n\nInterfaces\n----------\n\n|---------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Palette.Filter](/reference/androidx/palette/graphics/Palette.Filter) | A Filter provides a mechanism for exercising fine-grained control over which colors are valid within a resulting [Palette](/reference/androidx/palette/graphics/Palette). |\n| [Palette.PaletteAsyncListener](/reference/androidx/palette/graphics/Palette.PaletteAsyncListener) | Listener to be used with [generateAsync](/reference/androidx/palette/graphics/Palette#generateAsync(android.graphics.Bitmap,androidx.palette.graphics.Palette.PaletteAsyncListener)) or [generateAsync](/reference/androidx/palette/graphics/Palette#generateAsync(android.graphics.Bitmap,int,androidx.palette.graphics.Palette.PaletteAsyncListener)) |\n\nClasses\n-------\n\n|-------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|\n| [Palette](/reference/androidx/palette/graphics/Palette) | A helper class to extract prominent colors from an image. |\n| [Palette.Builder](/reference/androidx/palette/graphics/Palette.Builder) | Builder class for generating [Palette](/reference/androidx/palette/graphics/Palette) instances. |\n| [Palette.Swatch](/reference/androidx/palette/graphics/Palette.Swatch) | Represents a color swatch generated from an image's palette. |\n| [PaletteKt](/reference/androidx/palette/graphics/PaletteKt) | |\n| [Target](/reference/androidx/palette/graphics/Target) | A class which allows custom selection of colors in a [Palette](/reference/androidx/palette/graphics/Palette)'s generation. |\n| [Target.Builder](/reference/androidx/palette/graphics/Target.Builder) | Builder class for generating custom [Target](/reference/androidx/palette/graphics/Target) instances. |"]]