Author: manolo Date: 2012-11-17 07:01:01 -0800 (Sat, 17 Nov 2012) New Revision: 9726 Log: Mac OS: make clear that image capture from screen returns an image in premultiplied RGBA format (cont'd).
Modified: branches/branch-3.0/src/fltk3/cocoa.mm Modified: branches/branch-3.0/src/fltk3/cocoa.mm =================================================================== --- branches/branch-3.0/src/fltk3/cocoa.mm 2012-11-17 14:57:55 UTC (rev 9725) +++ branches/branch-3.0/src/fltk3/cocoa.mm 2012-11-17 15:01:01 UTC (rev 9726) @@ -3103,9 +3103,9 @@ } unsigned char *Fl_X::bitmap_from_window_rect(fltk3::Window *win, int x, int y, int w, int h, int *bytesPerPixel) -/* Returns a capture of part of a mapped window as a pre-multiplied RGBA array of bytes. - At present, alpha values are always 1 (or 0 for the angles of a window title bar) - because only opaque colors are used to draw, so pre-multiplication can be ignored. +/* Returns a capture of a rectangle of a mapped window as a pre-multiplied RGBA array of bytes. + Alpha values are always 1 (except for the angles of a window title bar) + so pre-multiplication can be ignored. *bytesPerPixel is always set to the value 4 upon return. delete[] the returned pointer after use */ _______________________________________________ fltk-commit mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-commit
