Image

Widgets: Images - Read about ImTextureID/ImTextureRef here: https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples - 'uv0' and 'uv1' are texture coordinates. Read about them from the same link above. - Image() pads adds style.ImageBorderSize on each side, ImageButton() adds style.FramePadding on each side. - ImageButton() draws a background based on regular Button() color + optionally an inner background if specified. - An obsolete version of Image(), before 1.91.9 (March 2025), had a 'tint_col' parameter which is now supported by the ImageWithBg() function.

pure @nogc nothrow @trusted
void
Image
(
ImTextureRef tex_ref
,
ImVec2 image_size
)

Meta