> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: Image
icon: braces
---

# <ApiPageIcon icon="braces" />Image

## panorama.panels.Image<ApiTag label="object type" />

<ApiSymbol inherits="[{&#x22;n&#x22;:&#x22;panorama.panels.Panel&#x22;,&#x22;h&#x22;:&#x22;/cs2/dumped_data/panorama/panels/Panel#panoramapanelspanel&#x22;}]" />

JavaScript panel type `Image`: the members of a panel's object, as `panorama.ids.<Id>` returns it
or as JavaScript hands it back. Call its members with a dot.
Extends `Panel`, inferred from the registered members; only what `Image` adds is listed here.

<ApiMembers>
  <ApiMember kind="fn" name="panorama.panels.Image.SetImage" args="arg1" sig="[{&#x22;s&#x22;:&#x22;panorama.panels.Image.SetImage&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;arg1&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;string&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#string&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;}]" params="[{&#x22;n&#x22;:&#x22;arg1&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;string&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#string&#x22;}]}]" />

  <ApiMember kind="fn" name="panorama.panels.Image.SetImageFromFile" args="arg1" sig="[{&#x22;s&#x22;:&#x22;panorama.panels.Image.SetImageFromFile&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;arg1&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;string&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#string&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;}]" params="[{&#x22;n&#x22;:&#x22;arg1&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;string&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#string&#x22;}]}]" />

  <ApiMember kind="fn" name="panorama.panels.Image.SetImageFromPanel" args="arg1, arg2" sig="[{&#x22;s&#x22;:&#x22;panorama.panels.Image.SetImageFromPanel&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;arg1&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;any&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;},{&#x22;s&#x22;:&#x22;, &#x22;},{&#x22;s&#x22;:&#x22;arg2&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;boolean&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#boolean&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;}]" params="[{&#x22;n&#x22;:&#x22;arg1&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;any&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;}]},{&#x22;n&#x22;:&#x22;arg2&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;boolean&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#boolean&#x22;}]}]" />

  <ApiMember kind="fn" name="panorama.panels.Image.SetScaling" args="arg1" sig="[{&#x22;s&#x22;:&#x22;panorama.panels.Image.SetScaling&#x22;},{&#x22;s&#x22;:&#x22;(&#x22;},{&#x22;s&#x22;:&#x22;arg1&#x22;},{&#x22;s&#x22;:&#x22;: &#x22;},{&#x22;s&#x22;:&#x22;string&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#string&#x22;},{&#x22;s&#x22;:&#x22;)&#x22;}]" params="[{&#x22;n&#x22;:&#x22;arg1&#x22;,&#x22;t&#x22;:[{&#x22;s&#x22;:&#x22;string&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#string&#x22;}]}]" />
</ApiMembers>
