Difference between revisions of "ImGui.Core:scaledImage"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2020.9<br/> '''Class:''' ImGui<br/> === Description === Displays an image scaled to fit space while keeping its aspect ratio. <so...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Displays an image scaled to fit space while keeping its aspect ratio.
 
Displays an image scaled to fit space while keeping its aspect ratio.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
ImGui:scaledImage(texture,w,h,color,alpha,bordercolor,borderalpha,anchorx,anchory)
 
ImGui:scaledImage(texture,w,h,color,alpha,bordercolor,borderalpha,anchorx,anchory)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===

Latest revision as of 15:29, 13 July 2023

Available since: Gideros 2020.9
Class: ImGui

Description

Displays an image scaled to fit space while keeping its aspect ratio.

ImGui:scaledImage(texture,w,h,color,alpha,bordercolor,borderalpha,anchorx,anchory)

Parameters

texture: (texture) the image texture
w: (number) the image width
h: (number) the image height
color: (number) the image tint color in hex format optional
alpha: (number) the image alpha optional
bordercolor: (number) the image border color in hex format optional
borderalpha: (number) the image border alpha optional
anchorx: (number) the image anchor x optional
anchory: (number) the image anchor y optional