[fltk.development] draw text inside button widget

2009-11-10 Thread leowang
Dear All, I found that when I draw the text in button widget, the corrdinates of the text is not in the center of the button, but near the bottom part. If I deactivate the button, the text will be more near the bottom part. Why? My code is as follows: m_pButton = new Button(0,0, 47, 21, "test"

[fltk.development] use YUV data as FLTK image

2009-11-10 Thread leowang
Dear All, As I know, fltk can take bmp, xpm, jpg, png format picture as it's accept image. Now I want to transfer a YUV data as the FLTK image. how can I do? I try to rename a YUV data to a bmp suffix, such as yuv.bmp, and add a bmp header to this file, then transfer this image to SharedImage: