Page History
...
Ancestors - Graphic (PRIM_FLBX)Object (PRIM_OBJT)
Details
A Bitmap component can be used to store images files in the LANSA repository.
...
PRIM_BMP is an abstract class. The Sys_Appln.CreateBitmap method can be used to create an instance at runtime.
Example
In this example an image stored in a BLOB field is used to populate the image.
#Image.FileName := #Empimg
In this example a bitmap instance is created from a file.
Define_Com Class(#Prim_bmp) Name(#Bitmap) Reference(*Dynamic)
#Bitmap <= #Sys_Appln.CreateBitmap(#FilePath)
Properties
Name | Description |
|---|---|
Number of bits per pixel | |
ComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT) | |
ComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT) | |
ComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT) | |
Generic space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT) | |
ComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT) | |
ComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT) | |
Image Compression Type | |
FileName is used to specify an image file | |
Height of the image in pixels | |
Number of images | |
Image Format | |
True when the bitmap source file has been loaded | |
Color used to identify the background of the image | |
Name identifies the component Inherited from Object (PRIM_OBJT) | |
Owner owns this component Inherited from Object (PRIM_OBJT) | |
The component instance to which this instance is attached. The visual container for a control or the collector of a set of child instances Inherited from Object (PRIM_OBJT) | |
Use on of the standard application images | |
Use the mask color as the background | |
Width of the image in pixels |
Events
Name | Description |
|---|---|
CreateInstance is signalled when an instance of a component is created [created Inherited from Bitmap (PRIM_BMP) | |
DestroyInstance is signalled when an instance of a component is about to be destroyed [destroyed Inherited from Bitmap (PRIM_BMP) | |
Fired if the image fails to load for any reason | |
Fired when the bitmap source has been loaded |