Image
Description
Use Image to display a graphical image on a form. For example, you can place your company logo on the form. Supported formats are jpg, bmp, gif, png8, png24.
Class: TdbImage
Properties
Property |
Type |
Description |
AutoSize |
Boolean |
Specifies whether the control sizes itself automatically to accommodate its contents. |
TCanvas |
Provides a drawing surface for embellishing bitmap images. More info. |
|
Center |
Boolean |
Indicates whether the image is centered in the image control. |
TCursor |
Specifies the image used to represent the mouse pointer when it passes into the region covered by the component. More info. |
|
Enabled |
Boolean |
Controls whether the component responds to mouse, keyboard, and timer events. |
Hint |
String |
Hint contains the text string that appears when the user moves the mouse over the component., see also ShowHint |
Name |
String |
The name of the component. |
TPicture |
Specifies the image that appears on the image component. More info. |
|
Proportional |
Boolean |
Indicates whether the image should be changed, without distortion, so that it fits the bounds of the image component. |
ShowHint |
Boolean |
Specifies whether to show the Help Hint when the mouse pointer moves over the component, see also Hint |
Stretch |
Boolean |
Indicates whether the image should be changed so that it exactly fits the bounds of the image control. |
Tag |
Integer |
Allows you to assign a number to a component for your own needs. |
TagString |
String |
Allows you to assign a string to a component for your own needs. |
Visible |
Boolean |
Specifies whether the component appears onscreen. |
Left |
Integer |
Specifies the horizontal coordinate of the left edge of a component relative to its parent. |
Top |
Integer |
Specifies the vertical coordinate of the upper-left of a component relative to its parent. |
Width |
Integer |
Specifies the horizontal size of the component in pixels. |
Height |
Integer |
Specifies the vertical size of the component in pixels. |
Methods
Method |
Description |
procedure Clear |
Clears the picture of the component. |
function CanPasteBitmapFromClipboard: boolean |
The function returns True if the clipboard contains an image in bmp format. |
function CopyToClipboard: boolean |
The function copies the component's picture to the clipboard. If successful, the function returns True. |
function PasteBitmapFromClipboard: boolean |
The function inserts an image from the clipboard into the component. Only images in bmp format are supported. |
Events
Event |
Description |
OnClick (Sender: TObject) |
Occurs when the user clicks the component. |
OnDoubleClick (Sender: TObject) |
Occurs when the user double-clicks the left mouse button when the mouse pointer is over the component. |
OnMouseDown (Sender: TObject; MouseLeft, MouseRight, MouseMiddle: boolean; Shift, Alt, Ctrl: boolean; X, Y: Integer) |
Occurs when the user presses a mouse button with the mouse pointer over a component. |
OnMouseEnter (Sender: TObject) |
Occurs when the user moves the mouse into a component. |
OnMouseLeave (Sender: TObject) |
Occurs when the user moves the mouse outside of a component. |
OnMouseMove (Sender: TObject; Shift, Alt, Ctrl: boolean; X, Y: Integer) |
Occurs when the user moves the mouse pointer while the mouse pointer is over a component. |
OnMouseUp (Sender: TObject; MouseLeft, MouseRight, MouseMiddle: boolean; Shift, Alt, Ctrl: boolean; X, Y: Integer) |
Occurs when the user releases a mouse button that was pressed with the mouse pointer over a component. |