From b983b285cc4f0627a1f72c9d6c510047af0ad116 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 26 Jan 1999 21:36:02 +0000 Subject: Lots of documentation fixes, and added a new image for the Fluid chapter. git-svn-id: file:///fltk/svn/fltk/trunk@244 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/drawing.html | 56 +++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 30 deletions(-) (limited to 'documentation/drawing.html') diff --git a/documentation/drawing.html b/documentation/drawing.html index df1e395fb..75ad5d52e 100644 --- a/documentation/drawing.html +++ b/documentation/drawing.html @@ -28,9 +28,9 @@ overlay, or OpenGL windows! drawing functions: - In the current version the XPM data is converted to 8-bit full color + In the current version the XPM data is converted to 24-bit RGB color and passed through fl_draw_image(). This is obviously not the most efficient way to do it, and has the same visual limitations as listed above for fl_draw_image(). Transparent colors are @@ -448,7 +444,7 @@ make an Fl_Widget use a pixmap as a label, or to just draw the pixmap directly. Under X it will create an offscreen pixmap the first time it is drawn, and copy this each subsequent time it is drawn . -

The current implementation converts the pixmap to 8 bit color data +

The current implementation converts the pixmap to 24-bit RGB data and uses fl_draw_image() to draw it. Thus you will get dithered colors on an 8 bit screen.

Fl_Pixmap(char *const* data)

@@ -482,7 +478,7 @@ to draw the pixmap. You can use the same pixmap for many widgets. make an Fl_Widget use an image as a label, or to just draw the image directly. Under X it will create an offscreen pixmap the first time it is drawn, and copy this each subsequent time it is drawn. -

Fl_Image(char uchar *data, int W, int H, int D = 3, int LD = 0)

+

Fl_Image(const uchar *data, int W, int H, int D = 3, int LD = 0)

Construct using a pointer to RGB data. W and H are the size of the image in pixels. D is the delta between pixels (it may be more than 3 to skip alpha or other data, or negative to flip @@ -504,4 +500,4 @@ ox
and oy may be negative and w and h the same as doing draw(x,y,this->w,this->h,0,0).

void label(Fl_Widget *)

Change the label() and the labeltype() of the widget -to draw the image. You can use the same image for many widgets. \ No newline at end of file +to draw the image. You can use the same image for many widgets. -- cgit v1.2.3