From: Dominic L. <ma...@us...> - 2004-06-13 19:32:22
|
Update of /cvsroot/robotflow/RobotFlow/Probes/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28092 Modified Files: ImageProbe.cc Log Message: now able to display 24 bpp images Index: ImageProbe.cc =================================================================== RCS file: /cvsroot/robotflow/RobotFlow/Probes/src/ImageProbe.cc,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** ImageProbe.cc 20 Jun 2003 18:25:56 -0000 1.7 --- ImageProbe.cc 13 Jun 2004 19:32:12 -0000 1.8 *************** *** 258,261 **** --- 258,270 ---- } }//pixelsize = 2 + else if (my_image.get_pixelsize() == 3) { + + //get pixbuf image ptr + unsigned char *pixbuf_data = gdk_pixbuf_get_pixels(m_pixbuf); + + //copy data + memcpy(pixbuf_data,my_image.get_data(),my_image.get_width() * my_image.get_height() * my_image.get_pixelsize()); + + } //update canvas. |