summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2012-06-13 13:13:40 +0000
committerGreg Ercolano <erco@seriss.com>2012-06-13 13:13:40 +0000
commit8116b1d6cbda89a9ab9f352c491c66515dec84d5 (patch)
treedd7e94ac180c7bca961ac498a267ebc289cc5bae
parentf656c0627c1a2e544a91e3da646e28ca238da682 (diff)
Improved docs for Fl_RGB_Image() ctor.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9594 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--FL/Fl_Image.H17
1 files changed, 16 insertions, 1 deletions
diff --git a/FL/Fl_Image.H b/FL/Fl_Image.H
index 67813c198..7df925c13 100644
--- a/FL/Fl_Image.H
+++ b/FL/Fl_Image.H
@@ -184,7 +184,22 @@ public:
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();