Was this helpful?
DisplayPolicy Attribute
Data Type: integer
4GL Access: RW
The DisplayPolicy attribute determines how OpenROAD fits an image to the field displaying it.
Valid settings are:
DP_CLIP_IMAGE
Specifies that OpenROAD clips the image to fit in the image field. The image is trimmed along its length and width, retaining the centermost parts of the image. If the image is smaller than the field, the image is centered within the field boundaries.
This setting is the default setting for ImageField.
DP_AUTOSIZE_FIELD
Specifies that OpenROAD changes the size of the image field or image trim to match the size of the image. Also, the field bias setting of FB_FLEXIBLE acts as if it were set to FB_MOVEABLE and the field bias setting of FB_RESIZEABLE acts as if set to FB_MARKABLE.
This setting is the default for ImageTrim.
DP_SCALE_IMAGE_H
Specifies that OpenROAD scales the image to fit within the height currently specified for the image field or image trim and adjusts the width to keep the image's original proportions of height to width.
This setting is useful when the field bias setting is FB_FLEXIBLE or FB_RESIZEABLE, because the user can size an image to any value.
DP_SCALE_IMAGE_W
Specifies that OpenROAD scales the image to fit within the width currently specified for the image field or image trim and adjusts the height to keep the image's original proportions of height to width.
This setting is useful when the field bias setting is FB_FLEXIBLE or FB_RESIZEABLE, because the user can size an image to any value.
DP_SCALE_IMAGE_HW
Specifies that OpenROAD scales the image to fit inside the height and width currently specified for the image field or image trim. This setting often distorts the image in one of the directions to force the fit.
This setting is useful when the field bias setting is FB_FLEXIBLE or FB_RESIZEABLE, because the user can size an image to any value.
Descriptions of system constant values and their numeric equivalents are listed in DisplayPolicy Settings for ImageFields.
Last modified date: 06/25/2024