Programming Guide : Working with Images and Text Strings : How You Can Work with Images : ImageField Object
 
Share this page          
ImageField Object
The ImageField object describes the image field that you use to display the bitmap images. The ImageField object specifies how to display the image.
The most important attribute of the ImageField class is the DisplayPolicy attribute. Because the bitmap image may be a different size than the field, you must specify what happens when the image is displayed. The DisplayPolicy attribute has the following settings:
DP_CLIP_IMAGE
Specifies that OpenROAD clips (or crops) the image to fit it into the field
DP_AUTO_SIZE_FIELD
Specifies that OpenROAD expands or shrinks the field as necessary to fit the image
DP_SCALE_IMAGE_HW
Specifies that OpenROAD scales the height and width of the image to fit the field, possibly causing the image to distort
DP_SCALE_IMAGE_H
Specifies that OpenROAD scales the image vertically to fit the field. The aspect ratio of the image is maintained.
DP_SCALE_IMAGE_W
Specifies that OpenROAD scales the image horizontally to fit the field. The aspect ratio of the image is maintained.