Tag Archives: converting

FLTK tech, HICON to Fl_RGB_Image

This is a simple source code for converting Windows HICON to Fl_RGB_Image for my own customized FLTK window.

Before understanding how it works, It must be requires understanding of some Windows API like LoadImage().

API, icon_to_flrgb()

Plus, to remove Fl_RGB_Image in safe, use this.

remove_fl_rgb_image()

And, let know understand how it calls :

Sequence to convert image and apply, then discard.

remove_fl_rgb_image() may called in end of program, when it terminates or class destructor to release memory contains user allocated memory, and it is specification of FLTK 1.3.x.