Create HBITMAP from Fl_RGB_Image
Comments Off on Create HBITMAP from Fl_RGB_Image
Here is a simple code for convert Fl_RGB_Image to HBITMAP. HBITMAP GetHBMPfromFlRGBImg( const Fl_RGB_Image* src ) { if ( src == NULL ) return NULL; if ( src->d() != 4 ) /// Accepts only for RGBA 4 depth. return NULL; BITMAPINFOHEADER bmih = {0}; bmih.biSize = sizeof(BITMAPINFOHEADER); bmih.biWidth = src->w();… Read more »