Stay organized with collections
Save and categorize content based on your preferences.
PaintFlagsDrawFilter
open class PaintFlagsDrawFilter : DrawFilter
Summary
Public constructors |
Subclass of DrawFilter that affects every paint by first clearing the specified clearBits in the paint's flags, and then setting the specified setBits in the paint's flags.
|
Public constructors
PaintFlagsDrawFilter
PaintFlagsDrawFilter(
clearBits: Int,
setBits: Int)
Subclass of DrawFilter that affects every paint by first clearing the specified clearBits in the paint's flags, and then setting the specified setBits in the paint's flags.
Parameters |
clearBits |
Int: These bits will be cleared in the paint's flags |
setBits |
Int: These bits will be set in the paint's flags |
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,["# PaintFlagsDrawFilter\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nPaintFlagsDrawFilter\n====================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/graphics/PaintFlagsDrawFilter \"View this page in Java\") \n\n```\nopen class PaintFlagsDrawFilter : DrawFilter\n```\n\n|---|---|--------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [android.graphics.DrawFilter](/reference/kotlin/android/graphics/DrawFilter) ||\n| | ↳ | [android.graphics.PaintFlagsDrawFilter](#) |\n\nSummary\n-------\n\n| Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [PaintFlagsDrawFilter](#PaintFlagsDrawFilter(kotlin.Int,%20kotlin.Int))`(`clearBits:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `setBits:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Subclass of DrawFilter that affects every paint by first clearing the specified clearBits in the paint's flags, and then setting the specified setBits in the paint's flags. |\n\n| Inherited functions ||\n|---|---|\n| From class [DrawFilter](/reference/kotlin/android/graphics/DrawFilter) |------------------------------------------------------------------------------|---------------------------------------------------------------------------------| | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [finalize](/reference/kotlin/android/graphics/DrawFilter#finalize())`()` \u003cbr /\u003e | ||\n\nPublic constructors\n-------------------\n\n### PaintFlagsDrawFilter\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nPaintFlagsDrawFilter(\n clearBits: Int, \n setBits: Int)\n```\n\nSubclass of DrawFilter that affects every paint by first clearing the specified clearBits in the paint's flags, and then setting the specified setBits in the paint's flags.\n\n| Parameters ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------------|\n| `clearBits` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): These bits will be cleared in the paint's flags |\n| `setBits` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): These bits will be set in the paint's flags |"]]