From d24a6b2633664959d0b0ab5fd1ab3aa140ab877f Mon Sep 17 00:00:00 2001
From: Albrecht Schlosser
Since the Fl_Image class does not support image + Since the Fl_Image class does not support image drawing by itself, calling the draw() method results in a box with an X in it being drawn instead. */ class FL_EXPORT Fl_Image { int w_, h_, d_, ld_, count_; const char * const *data_; + static Fl_RGB_Scaling RGB_scaling_; - // Forbid use of copy contructor and assign operator + // Forbid use of copy constructor and assign operator Fl_Image & operator=(const Fl_Image &); Fl_Image(const Fl_Image &); @@ -152,15 +161,12 @@ class FL_EXPORT Fl_Image { */ void draw(int X, int Y) {draw(X, Y, w(), h(), 0, 0);} // platform dependent virtual void uncache(); -}; -/** \enum Fl_RGB_Scaling - The image-scaling algorithm to use. - */ + // set RGB image scaling method + static void RGB_scaling(Fl_RGB_Scaling); -enum Fl_RGB_Scaling { - FL_SCALING_NEAREST = 0, ///< default RGB image-scaling algorithm - FL_SCALING_BILINEAR ///< alternative, slower and more accurate RGB image-scaling algorithm + // get RGB image scaling method + static Fl_RGB_Scaling RGB_scaling(); }; /** @@ -168,9 +174,9 @@ enum Fl_RGB_Scaling { of full-color images with 1 to 4 channels of color information. Images with an even number of channels are assumed to contain alpha information, which is used to blend the image with the - contents of the screen.
- -Fl_RGB_Image is defined in + contents of the screen. + + Fl_RGB_Image is defined in <FL/Fl_Image.H>, however for compatibility reasons <FL/Fl_RGB_Image.H> should be included. */ @@ -179,7 +185,6 @@ class FL_EXPORT Fl_RGB_Image : public Fl_Image { friend class Fl_GDI_Graphics_Driver; friend class Fl_Xlib_Graphics_Driver; static size_t max_size_; - static Fl_RGB_Scaling scaling_; public: const uchar *array; @@ -240,14 +245,6 @@ public: \sa void Fl_RGB_Image::max_size(size_t) */ static size_t max_size() {return max_size_;} - - /** Sets the scaling method used for copy(int, int). - Applies to all RGB images, defaults to FL_SCALING_NEAREST. - */ - static void scaling(Fl_RGB_Scaling); - - /** Returns the currently used scaling method. */ - static Fl_RGB_Scaling scaling(); }; #endif // !Fl_Image_H -- cgit v1.2.3