Next: Text, Previous: Paths, Up: Core object functions [Contents][Index]
A picture object displays an image in the schematic, and is a purely graphical element. Pictures may be in any format supported by the user’s GdkPixbuf installation (but note that images that can’t be loaded for some reason are preserved). The top-left, bottom-right, angle and mirror properties of a picture object indicate the transformation that was applied to the original image. The transformation is applied as follows:
Returns ‘#t’ if and only if object is a picture object
.
Creates and returns a new picture object for filename, by reading image data from vector (which should be in a standard image file format). If vector could not be loaded, an error is raised. top-left, bottom-right, angle and mirror specify the picture transformation.
The points top-left and bottom-right should be specified in the form ‘(x . y)’.
Sets the picture transformation for picture.
Returns the parameters of picture as a list in the form:
(filename (top-left-x . top-left-y) (bottom-right-x . bottom-right-y) angle mirror)
Returns the filename associated with picture as a string.
Returns the position of the top left corner of ‘picture’ in the form ‘(x . y)’.
Returns the position of the bottom right corner of ‘picture’ in the form ‘(x . y)’.
Returns the angle to rotate ‘picture’ by, as an integer number of degrees.
Returns true if ‘picture’ is mirrored.
Next: Text, Previous: Paths, Up: Core object functions [Contents][Index]