A pixmap object is
a coloured image: a rectangular area of
pixmap<-width x pixmap<-height pixels,
each of which may have its own colour.
Coloured images are actually supported by class image
using
image<-kind.
This class is introduced to provide type specification for coloured
images as needed for some graphical operations as well as automatic
conversion of monochrome bitmaps into colour pixmaps.
This class is often used implicitly:‘window pixmap->background:
@grey25_image’will
automatically convert the @grey25_image
into a pixmap using pixmap<-convert.
Explicit usage is normally done to create a coloured version of some monochrome bitmap:
?- new(I, pixmap(image('pce.bm'), red, green)).
Will create a version of the library image pce.bm
using a red
pixmap<-foreground and a green <background.
See also pixmap->initialise.
Pixmaps are in general reusable objects like normal images.
Therefore, the pixmap<-convert
method ensure reuse of a pixmap create from some monochrome image.
|file]*,
width=[int], height=[int]After doing so, it will establish a hyper
object with names pixmap and image that
relates the original image and the new pixmap. See also pixmap<-lookup
and
pixmap<-source.
|image|graphical|file -> pixmapnew(Pm, pixmap(image)), first trying pixmap<-lookup
to reuse an older transformation and then pixmap->initialise
to create a new pixmap
object.
->draw_in
to paint the graphical in the pixmap.
<-hypered:
pixmap with the same foreground and background.
This method ensures reuse of converted monochrome images. see also pixmap<-source.
|file*<-file
is not
@nil, this
value is returned. If object<-hypered:
image returns an
image object, this is
returned. Otherwise @nil
is returned.
Used for converting a pixmap to its term representation.