Class Image
Inheritance
GraphicControl | Image 🡄 GraphicControl 🡄 Control 🡄 Component 🡄 Object |
Properties
Canvas | The canvas object to access the picture of the image. |
Picture | The picture to render. |
Stretch | Determines if the picture gets stretched when rendered in the image component. |
Transparent | Determines if some parts of the picture are see through. |
Methods
getCanvas () | |
getPicture () | Returns the Picture object of this image. |
getStretch () | |
getTransparent () | |
loadImageFromFile ( filename ) | |
setPicture ( picture ) | |
setStretch ( stretch ) | |
setTransparent ( transparent ) |
Creation
createImage ( owner ) | Creates an Image class object which belongs to the given owner. |
Inheritance
- GraphicControl
- Image 🡄 GraphicControl 🡄 Control 🡄 Component 🡄 Object
Properties
- Canvas
-
The canvas object to access the picture of the image.
Type:
- Picture
-
The picture to render.
Type:
- Stretch
-
Determines if the picture gets stretched when rendered in the image component.
Type:
boolean - Transparent
-
Determines if some parts of the picture are see through.
(usually based on the bottomleft corner)
Type:
boolean
Methods
- getCanvas ()
- getPicture ()
-
Returns the Picture object of this image.
Returns:
- getStretch ()
-
Returns:
-
boolean
- getTransparent ()
-
Returns:
-
boolean
- loadImageFromFile ( filename )
-
Parameters:
- filename
- setPicture ( picture )
-
Parameters:
- picture Picture
- setStretch ( stretch )
-
Parameters:
- stretch boolean
- setTransparent ( transparent )
-
Parameters:
- transparent boolean
Creation
- createImage ( owner )
-
Creates an Image class object which belongs to the given owner.
Owner can be any object inherited from WinControl.
Parameters:
- owner WinControl
Returns: