Skip to content

Commit

Permalink
Update image.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TheStripyCat authored Dec 10, 2024
1 parent 8f69b53 commit 5a1cb98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manual/ui/controls/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
![Image](media/image.png)

The **Image** control displays a non-interactive graphic defined by the assigned brush. It can draw a texture, render target, sprite, GUI material, solid color or a linear gradient.
To change the texture from code, assign 'new TextureBrush(newTexture)' to the Brush parameter of Image.
For example: 'portraitImage.Get<Image>().Brush = new TextureBrush(portraitTexture);'
To change the texture from code, assign `new TextureBrush(newTexture)` to the Brush parameter of Image.
For example: `portraitImage.Get<Image>().Brush = new TextureBrush(portraitTexture);`

0 comments on commit 5a1cb98

Please sign in to comment.