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:

    Picture
getStretch ()

Returns:

    boolean
getTransparent ()

Returns:

    boolean
loadImageFromFile ( filename )

Parameters:

  • filename
setPicture ( picture )

Parameters:

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:

Returns:

    Image
generated by LDoc 1.4.6-antum-dev-1 Last updated 2019-02-27 23:30:35