8. Working with Images and Text Strings : How You Can Work with Images : Image Fields
 
Share this page                  
Image Fields
An image field is a rectangular boundary, like a picture frame, in which you can display bitmap images that are stored either in files or in the database. Image fields differ from most other field types in the way they store data.
For most field types, the data to be displayed in the field is contained in the variable that is associated with the field. For example, the integer variable associated with a slider field contains the current value for the slider. However, the data for an image field consists of bitmap images.
Instead of actually containing the data for the field, the reference variable associated with the image field points to an object of the BitmapObject class. In addition to containing the bitmap image that is the current data for the field, the bitmap object referenced by the image field's variable provides attributes and methods that enable:
Loading an image from a file into OpenROAD
Updating the images in the database or files