| Did you know ... | Search Documentation: |
| Send methods |
<->access
both and bitmap<->bitmap @nil,
the bitmap<->bitmap variable of the
image is filled with the bitmap. Subsequent changes to the image are
forwarded to the bitmap.
-bitmap|animation]<-width
and graphical<-height
as the image. If the argument is an animation, the bitmap shows its
first frame (see bitmap->animation).
Note that images are automatically converted from names (see
image->initialise).
Thus, the following displays XPCE's icon on a picture window:
?- send(new(P, picture), open),
send(P, display,
bitmap('16x16/pce.xpm'), point(25, 25)).
By default, image
objects are cached (i.e. remain in memory).
If you have many or large ones, please study image->initialise
and image->load.
<-animation
at this index, where the first frame is 1. Fails if there is no such
frame. If the animation is playing, it continues from this frame.<-animation
from the current frame: show each frame for its
animation<-delays
and continue with the next. After the last frame it starts again, until
it has played animation<-loop_count
times; it then stops at the last frame. Fails if there is no animation
or it has only one frame..path.
Backward compatibility only. New code should manipulate the image directly.
Defaults: The default search path is determined by the
resource bitmap.path. Its system
defined value is
.:~/lib/bitmaps:$PCEHOME/bitmaps:/usr/include/X11/bitmaps
Diagnostics: Fails silently on bad format or non-existing file.
->save