Next: , Previous: BLOX.BImage-accessing, Up: BLOX.BImage


1.22.7 BLOX.BImage: image management

blank
Blank the corresponding image


data: aString
Set the image to be drawn to aString, which can be a GIF in Base-64 representation or an X pixelmap.


dither
Recalculate the dithered image in the window where the image is displayed. The dithering algorithm used in displaying images propagates quantization errors from one pixel to its neighbors. If the image data is supplied in pieces, the dithered image may not be exactly correct. Normally the difference is not noticeable, but if it is a problem, this command can be used to fix it.


fillFrom: origin extent: extent color: color
Fill a rectangle with the given origin and extent, using the given color.


fillFrom: origin to: corner color: color
Fill a rectangle between the given corners, using the given color.


fillRectangle: rectangle color: color
Fill a rectangle having the given bounding box, using the given color.


image: aFileStream
Read a GIF or XPM image from aFileStream. The whole contents of the file are read, not only from the file position.


imageHeight
Specifies the height of the image, in pixels. This option is useful primarily in situations where you wish to build up the contents of the image piece by piece. A value of zero (the default) allows the image to expand or shrink vertically to fit the data stored in it.


imageWidth
Specifies the width of the image, in pixels. This option is useful primarily in situations where you wish to build up the contents of the image piece by piece. A value of zero (the default) allows the image to expand or shrink horizontally to fit the data stored in it.


lineFrom: origin extent: extent color: color
Draw a line with the given origin and extent, using the given color.


lineFrom: origin to: corner color: color
This method's functionality has not been implemented yet.


lineFrom: origin toX: endX color: color
Draw an horizontal line between the given corners, using the given color.


lineFrom: origin toY: endY color: color
Draw a vertical line between the given corners, using the given color.


lineInside: rectangle color: color
Draw a line having the given bounding box, using the given color.