Skip to content
Last updated

API / geotoolkit / platforms / IBaseImage / IBaseImage

Class: IBaseImage

platforms.IBaseImage.IBaseImage

Base image interface

Interface

Table of contents

Constructors
  • [new IBaseImage()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.platforms.ibaseimage.ibaseimage.md#new ibaseimage())
Accessors
Methods

Contents

Constructors

new IBaseImage()

• new IBaseImage()

Accessors

alt

• Abstract get alt(): string

A string that reflects the alt HTML attribute, thus indicating the alternate fallback content to be displayed if the image has not been loaded.

Returns

string

• Abstract set alt(alt): void

Parameters

Name Type
altstring

Returns

void


complete

• Abstract get complete(): boolean

Returns a boolean value that is true if the browser has finished fetching the image, whether successful or not. That means this value is also true if the image has no src value indicating an image to load.

Returns

boolean


height

• Abstract get height(): number

An integer value that reflects the height HTML attribute, indicating the rendered height of the image in CSS pixels.

Returns

number

• Abstract set height(height): void

Parameters

Name Type
heightnumber

Returns

void


naturalHeight

• Abstract get naturalHeight(): number

The HTMLImageElement interface's read-only naturalHeight property returns the intrinsic (natural), density-corrected height of the image in CSS pixels.

Returns

number


naturalWidth

• Abstract get naturalWidth(): number

The HTMLImageElement interface's read-only naturalWidth property returns the intrinsic (natural), density-corrected width of the image in CSS pixels.

Returns

number


onerror

• Abstract get onerror(): Function

Returns

Function

• Abstract set onerror(onerror): void

Parameters

Name Type
onerrorFunction

Returns

void


onload

• Abstract get onload(): Function

Returns

Function

• Abstract set onload(onload): void

Parameters

Name Type
onloadFunction

Returns

void


src

• Abstract get src(): string

A string that reflects the src HTML attribute, which contains the full URL of the image including base URI. You can load a different image into the element by changing the URL in the src attribute.

Returns

string

• Abstract set src(src): void

Parameters

Name Type
srcstring

Returns

void


width

• Abstract get width(): number

A string that reflects the alt HTML attribute, thus indicating the alternate fallback content to be displayed if the image has not been loaded.

Returns

number

• Abstract set width(width): void

Parameters

Name Type
widthnumber

Returns

void

Methods

getClassName

▸ getClassName(): string

Returns

string


getNativeImage

▸ Abstract getNativeImage(): any

Native image instance, that can be rendered by native context

Returns

any


getClassName

▸ Static getClassName(): string

Returns

string