CImgDisplay (cimg v0.1.7) View Source

Display the CImg objects on PC screen. This module also provides the functionality to handle mouse-event, key-board-event, window-close-event, timer-event etc.

Note: You can only use these features in :dev or :test mode.

Link to this section Summary

Functions

See CImg.NIF.cimgdisplay_button/1.

See CImg.NIF.cimgdisplay_is_closed/1.

See CImg.NIF.cimgdisplay_mouse_y/1.

See CImg.NIF.cimgdisplay_wait/1.

See CImg.NIF.cimgdisplay_wait_time/2.

Link to this section Functions

See CImg.NIF.cimgdisplay_button/1.

Link to this function

create(cimg, title \\ "", normalization \\ 3, is_fullscreen \\ false, is_closed \\ false)

View Source

Create display object.

Parameters

Examples

  iex> img = CImg.load("sample.jpg")
  iex> display = CImgDisplay(img, "Sample image")
  iex> 

See CImg.NIF.cimgdisplay_is_closed/1.

See CImg.NIF.cimgdisplay_mouse_y/1.

See CImg.NIF.cimgdisplay_wait/1.

Link to this function

wait(cimgdisplay, milliseconds)

View Source

See CImg.NIF.cimgdisplay_wait_time/2.