src/swipl-devel/packages/xpce/man/refmanual/md/bitmap.md

class bitmap {#class-bitmap}

A bitmap is a graphical that displays an image. Most of the behaviour to manipulate the pixels of a bitmaps thus can be found with class image.

Bitmaps (images) come in two flavours. If image <-kind = bitmap, the elements of the bitmap are regarded as booleans. Boolean true (@on) is displayed in the <-colour of the bitmap and Boolean false (@off) is displayed in the current background or not painted if <-transparent equals @on. If image <-kind is pixmap each individual pixel represents a colour.

Bugs:

Stencils are not implemented.

A bitmap always paints all the pixels inside it's area. Support for partly transparent bitmaps should be provided.

There are no means for scaling bitmaps.

@see class image @see bitmap-status

Instance variables {#class-bitmap-instvars}

Send methods {#class-bitmap-send}

Get methods {#class-bitmap-get}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.