Image - siffiejoe/lua-fltk4lua GitHub Wiki

Image (abstract):

Corresponds to: Fl_Image

Functions

  • obj:color_average( int|userdata Fl_Color, double image )

    Fl_Color ( blend amount: 0.0 no image, to 1.0 full image shown )

  • obj:desaturate() ( convert to greyscale )
  • obj:inactive() ( copy appears greyed out )
  • obj:uncache() ( delete cache data )

Properties

  • obj.d ==> int depth get

    obj.d = int depth set
    ( 0 bitmaps, 1 pixmaps, and 1 to 4 color images )

  • obj.h ==> int height get

    obj.h = int height set
    ( in pixels )

  • obj.w ==> int width get

    obj.w = int width set
    ( in pixels )