Skip to main content
You're viewing documentation for a previous version of this software.Switch to the latest stable version
PESDK/Android/Features

Brush

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 customization section.

Example: How to set the default brush values:

// Obtain the config from you settingsList
BrushSettings brushSettings = settingsList.getSettingsModel(BrushSettings.class);
brushSettings.setBrushColor(0xFFFF0000);
brushSettings.setBrushHardness(1f);
brushSettings.setBrushSize(0.5f);