From 98d5dd690de87579720aa0e1bb803a9b433a9729 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 17 Nov 2012 14:57:55 +0000 Subject: Mac OS: make clear that image capture from screen returns an image in premultiplied RGBA format (cont'd). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9725 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 9a719cf1d..c1f809ca1 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3335,9 +3335,9 @@ static NSBitmapImageRep* rect_to_NSBitmapImageRep(Fl_Window *win, int x, int y, } unsigned char *Fl_X::bitmap_from_window_rect(Fl_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 */ -- cgit v1.2.3