GraffitiSuite Docs
Docs
Graffitiavatar
Loading document parsing libraries...
# GraffitiAvatar Class Inherits GraffitiUIControl ## About GraffitiAvatar is an amazingly simple yet beautiful component for displaying a user’s chosen image within your app and allowing them to interact with it.Features: * Automatic name to initial conversion * Rectangle, oval, or diamond shaping * Customizable border radius for rectangle * Color settings ## Preview  Previous Next ## Compatibility ### Framework API Version | 1.0 | 2.0 | | :---: | :---: | | False | True | ### Console | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ### Desktop | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ### iOS | 32-Bit | 64-Bit | | :---: | :---: | | False | True | ### Web | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ## Enumerations | Name | Value | Description | | --- | :---: | --- | | Shapes | Rectangle <br> Oval <br> Diamond | Supported avatar shapes. | ## Event Definitions | Name | Parameters | Return Type | Description | | --- | :---: | :---: | --- | | DoublePressed | (None) | (None) | Raised when the user double clicks the avatar's visible area. | | Pressed | (None) | (None) | Raised when the user single clicks the avatar's visible area. | ## Properties | Name | Type | Default Value | Description | | --- | :---: | :---: | --- | | BackgroundColor | ColorGroup | Nil | Background color used when displaying the user's initials. | | BorderColor | ColorGroup | Nil | Color used for drawing the outside edge of the avatar's visible area. | | BorderRadius | Double | Nil | Corner radius when using Shapes.Rectangle or Shapes.Diamond. | | BorderWidth | Integer | Nil | Size of the drawn border. | | HasStatus | Boolean | Nil | Determines whether the status icon is visible. | | Image | Picture | Nil | User avatar image. | | Shape | Shapes | Nil | Determines in what shape the avatar will be displayed. | | ShowInitialsOnPress | Boolean | True | When True, the initials will be shown when the user presses the avatar. | | StatusColor | Color | Nil | Controls the color displayed within the status icon. | | TextColor | ColorGroup | Nil | Color applied to drawn initials. | | UserName | String | Nil | Name to be used for initial extraction. |