API Docs


Brush tool

The high performant brush engine of the PhotoEditor SDK is optimized for touch screen interaction and supports different brush strokes that can be edited in terms of thickness and color.

The backend settings are implemented in the BrushSettings class and displayed using the BrushToolPanel. If you want to customize the appearance of this tool, take a look at the styling section.

Example: How to set the default brush values:

// Obtain the config from you settingsList
BrushSettings brushSettings = settingsList.getSettingsModel(BrushSettings.class);
// Obtain the config from you settingsList
val brushSettings = settingsList.getSettingsModel(
brushSettings.brushColor = ColorValue(0xFFFF0000)
brushSettings.brushHardness = 1f
brushSettings.brushSize = 0.5f