> For the complete documentation index, see [llms.txt](https://pahutyakv.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pahutyakv.gitbook.io/docs/mega-extension-pack/image.md).

# Image

#### **Visibility**

* `SetVisibility(bool value)` — Enables/disables Image.&#x20;
* `ToggleVisibility()` — Toggles visibility.

***

#### **Sprite**

* `SetSprite(Sprite sprite)` — Assigns a sprite.&#x20;
* `GetSprite()` — Returns current sprite.&#x20;
* `IsSpriteNull()` — Checks if sprite is null.&#x20;
* `HasSameSprite(Image other)` — Compares sprite with another Image.&#x20;
* `ReplaceSpritePreserveSize(Sprite newSprite)` — Replaces sprite keeping current size.

***

#### **Color**

* `SetColor(Color color)` — Sets color.&#x20;
* `GetColor()` — Returns current color.

***

#### **Alpha**

* `SetAlpha(float alpha)` — Sets alpha (0–1).&#x20;
* `GetAlpha()` — Returns alpha (0–1).

***

#### **Preserve Aspect**

* `SetPreserveAspect(bool value)` — Enables/disables aspect ratio preservation.&#x20;
* `GetPreserveAspect()` — Returns if aspect ratio is preserved.

***

#### **Image Type**

* `SetImageType(Image.Type type)` — Sets image type (Simple, Sliced, etc.).&#x20;
* `GetImageType()` — Returns image type.

***

#### **Fill Amount**

* `SetFillAmount(float amount)` — Sets fill amount (0–1).&#x20;
* `GetFillAmount()` — Returns fill amount.
