README.md

April 29, 2026 · View on GitHub

CImGui Zoomable Image


This project introduces C API for Dear Imgui Zoomable Image Display(ImGuiImage) to use it with other languages1 and a simple demo program in C.

Try Wasm live demo in your browser


Click link for live demo: Click here

alt

See Wasm example in Nim: glfw_opengl3_imgui_zoomable_image

Prerequisites


  • Windows OS 11 or later

    1. Install MSys2/MinGW (Windows OS)

    2. Install packages

      pacman -S mingw-w64-ucrt-x86_64-{gcc,glfw,pkg-config} make
      
  • Linux: Ubuntu / Debian families

    1. Install packages

      $ sudo apt install gcc lib{opengl-dev,gl1-mesa-dev,glfw3-dev} make pkg-config
      

Build and run


  1. Download this project.

    git clone --recursive https://github.com/dinau/cimgui_zoomable_image
    
  2. Go to demo with CImGui folder

    cd cimgui_zoomable_image/demo/cimui
    make run 
    
  3. Go to demo with Dear Bindings folder

    cd cimgui_zoomable_image/demo/dcimui
    make run 
    

Footnotes

  1. Zig, Nim, Nelua, etc