Bitbybit Docs
    Preparing search index...

    Class CreateImageDto (Inputs.BabylonGui)

    Feeds babylon.gui.image.createImage: the name, the picture's address, a color and the optional size of an image control.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionalname: string
      • Optionalurl: string
      • Optionalcolor: string
      • Optionalwidth: string | number
      • Optionalheight: string | number

      Returns CreateImageDto

    Properties

    name: string

    Name the image is known by, which control.getControlByName finds it by

    imageName
    
    url: string

    Address the picture is loaded from

    undefined
    
    color: string

    CSS color of the control, used for its border

    black
    
    width?: string | number

    Width, as a pixel string such as 200px or a fraction of the parent from 0 to 1; left out, the engine chooses

    undefined
    

    true

    height?: string | number

    Height, as a pixel string such as 200px or a fraction of the parent from 0 to 1; left out, the engine chooses

    undefined
    

    true