Skip to main content
Language

Configure Brush

PhotoEditor SDK supports several configuration options for the BrushToolPanel allowing flexible adaptation to different needs and use cases.

Set available tools#

By default, all available brush tools are enabled. For this example only a couple are enabled.

Default brush tool color#

The default color of the brush stroke is white. If you can anticipate that your use case requires a different default color you can do so using the setDefaultBrushColor() method.

Set available colors#

The default color palette provides multiple colors. Here, we only provide a small selection of colors as might be sensible for an annotation use case.

Default brush size#

Similarly, the size of the brush is set at 5% relative to the smaller side of the photo by default. In our example, we change it to 8%.