mirror of
https://github.com/fltk/fltk.git
synced 2026-06-01 23:06:54 +08:00
Documentation change related to "RGB sub image drawing slow with larger images" (#1384)
This commit is contained in:
+8
-3
@@ -287,9 +287,14 @@ public:
|
|||||||
(upper-left corner) of the image offset by the \c cx
|
(upper-left corner) of the image offset by the \c cx
|
||||||
and \c cy arguments.
|
and \c cy arguments.
|
||||||
|
|
||||||
In other words: <tt>fl_push_clip(X,Y,W,H)</tt> is applied,
|
Another way to see what part of the image gets drawn and where, is to consider this alternative writing producing the same output:
|
||||||
the image is drawn with its upper-left corner at <tt>X-cx,Y-cy</tt> and its own width and height,
|
\verbatim
|
||||||
<tt>fl_pop_clip</tt><tt>()</tt> is applied.
|
fl_push_clip(X,Y,W,H);
|
||||||
|
this->draw(X - cx, Y - cy);
|
||||||
|
fl_pop_clip();
|
||||||
|
\endverbatim
|
||||||
|
Repeated calls to this member function with the same image but varying <tt>W, H, cx</tt>, or <tt>cy</tt> arguments
|
||||||
|
may be more efficiently processed using the above alternative writing.
|
||||||
*/
|
*/
|
||||||
virtual void draw(int X, int Y, int W, int H, int cx=0, int cy=0); // platform dependent
|
virtual void draw(int X, int Y, int W, int H, int cx=0, int cy=0); // platform dependent
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user