Language Reference Guide : 4. System Classes : ImageTrim Class
 
Share this page                  
ImageTrim Class
The ImageTrim class provides graphical trim to display on the form. Image trim is saved with the frame.
Unlike the ImageField class, this field does not have an associated bitmap object value; instead it displays the bitmap object referenced by its Image attribute. That bitmap object may be specified when the image trim field is created in the frame editor, or specified at runtime by assigning the bitmap object to the Image attribute:
field(myImageTrim).Image = newimage;
If you make changes to the bitmap object itself at runtime (by resetting the FileHandle or DbHandle, or applying methods like SetPixelColor or ReplaceBitmap that alter the bitmap object contents), you must reassign the bitmap object to the Image attribute to see these changes:
field(myImageTrim).Image = field(myImageTrim).Image;
Because you can specify the Click event for image trim, you can use it as an icon button within an application.
Inherits From
Object Class
FieldObject Class
FormField Class
ActiveField Class
ScalarField Class
ImageField Class
Inherited By
None
Attributes
Image
Methods
None