How can I add a border to the inner canvas/editor? #211
-
Quick question. I have my initial transparent canvas set to 500x500, which takes up a bit of the device screen. I would like to add a border or something to help users know the boundary they can edit on. I have checked the editorTheme config and can't find anything to help me do this. Please advise if there is any way this can be done. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
To help the user identify areas where they can edit the image, I overlay a transparent background that darkens the surrounding layers slightly. This overlay is placed in front of all other layers, and its opacity can be adjusted to control the strength of the effect, as shown below. However, I suggest not setting the opacity value to 1, as this would make it impossible for the user to see any layers positioned outside the image. configs: ProImageEditorConfigs(
imageEditorTheme: ImageEditorTheme(
/// Default is 0.5
outsideCaptureAreaLayerOpacity: 0.95,
/// Change the color of the overlay below
/// background:
),
), For the case you require a complete transparent background as it is in the |
Beta Was this translation helpful? Give feedback.
Ah, got it you would like to mark an area on the image where the user should add text, rather than marking the image border, correct? If so, you can customize the editor configurations by adding
customWidgets
, as shown in the example below.