Author: greg.ercolano
Date: 2012-06-13 06:13:40 -0700 (Wed, 13 Jun 2012)
New Revision: 9594
Log:
Improved docs for Fl_RGB_Image() ctor.


Modified:
   branches/branch-1.3/FL/Fl_Image.H

Modified: branches/branch-1.3/FL/Fl_Image.H
===================================================================
--- branches/branch-1.3/FL/Fl_Image.H   2012-06-13 10:54:11 UTC (rev 9593)
+++ branches/branch-1.3/FL/Fl_Image.H   2012-06-13 13:13:40 UTC (rev 9594)
@@ -184,7 +184,22 @@
 
   public:
 
-/**  The constructor creates a new image from the specified data. */
+/**
+  The constructor creates a new image from the specified data.
+  \param[in] bits   The image data array.
+  \param[in] W      The width of the image in pixels
+  \param[in] H      The height of the image in pixels
+  \param[in] D      The image depth, or 'number of channels'. Default=3<br>
+                    If D=0, each uchar in bits[] is an 8 pixel bitmap<br>
+                    If D=1, each uchar in bits[] is a grayscale pixel 
value.<br>
+                   If D=2, each uchar pair in bits[] is a grayscale + alpha 
pixel value.<br>
+                   If D=3, each uchar triplet in bits[] is an R/G/B pixel 
value<br>
+                   If D=4, each uchar quad in bits[] is an R/G/B/A pixel value.
+  \param[in] LD     Line data size (default=0).<br>
+                    Line data is extra data that is included after each line
+                   of color image data and is normally not present. 
+  \see Fl_Image::data(), Fl_Image::w(), Fl_Image::h(), Fl_Image::d(), 
Fl_Image::ld()
+  */
   Fl_RGB_Image(const uchar *bits, int W, int H, int D=3, int LD=0) :
     Fl_Image(W,H,D), array(bits), alloc_array(0), id_(0), mask_(0) 
{data((const char **)&array, 1); ld(LD);}
   virtual ~Fl_RGB_Image();

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to