Workbench User Guide : 6. Creating and Using Basic Fields : Scalar Fields : Image Fields
 
Share this page                  
Image Fields
An image field is a field that displays a picture on a form. When you create the field, you specify its boundary. Since the field is meant to be dynamic during runtime, there is no static bitmap file associated with it at the time of creation.
For more information about working with image fields, see the Programming Guide.
More information:
Supported Image Formats
Create an Image Field
You can create an image field on a form.
To create a image field
1. Open your frame in the Frame Editor (see Open an Existing Frame).
2. Select the Image Field icon on the field palette.
3. Position and size the image field.
4. Set the properties for the image field.
For complete descriptions of each field property, see Image Field Properties and Common Field Properties.
Image Field Properties
All the properties for image fields are described under Common Field Properties, with the exception of the following property that is specific to the image field type.
DisplayPolicy
Specifies how the image will be displayed in the field. Available selections are:
DP_CLIP_IMAGE
Clips the image to fit the field
DP_AUTOSIZE_FIELD
Expands or shrinks the field to fit the image
DP_SCALE_IMAGE_H
Scales the image vertically to fit the field
DP_SCALE_IMAGE_W
Scales the image horizontally to fit the field
DP_SCALE_IMAGE_HW
Scales the image vertically and horizontally to fit the field (may cause distortion)
Default: DP_CLIP_IMAGE