Image Object Properties

You can add images with the following file formats: GIF (standard and animated), JPEG (standard and progressive), BMP (Windows and OS/2), TIFF, TGA, RAS, EPS, PCX, PNG, and WMF. The formats that are generally used for forms are GIF, JPEG, and PNG.

An image can optionally be bound to an attribute.

Property

Function

Id

Read-only. By default, automatically generated. Id="Image1" for the first inserted Image, Id="Image2" for the second, and so on.

Name

Read-only. The value of this property is set to Static control.

Border Style

Specifies the width of the border to draw around the object.

ControlType

Specifies Image as the type of object added to the form. To change the ControlType, choose from the list of available types.

ImageSource

Specifies the file name of the image used.

Location

Specifies the point in pixels that represents the upper-left corner of the object relative to the upper-left corner of its container as an X and Y location.

Size

Specifies the size of the object representing the height and width in pixels.

TabIndex

Specifies the index that defines the tab order for the object.

ToolTip

Specifies an optional tooltip to appear when the user at runtime hovers the mouse over a control in Winforms. To view the tooltip in the Presentation Client, the user has to hover over the control and press the F1 key. This tooltip is visible only at runtime.

Sizing

ResizeImage and ResizeBox are the two options available.

ResizeImage is the default value.

When an image is loaded with the ResizeImage option set, then the loaded image fits the size of the box set in the Painter tab. On toggling to ResizeBox, the box stretches to fit the original image size.

When an image is loaded with the ResizeBox option set, then the box stretches to fit the original image size. Resizing of the image is not allowed in this mode.