API / geotoolkit / platforms / IBaseImage / IBaseImage
platforms.IBaseImage.IBaseImage
Base image interface
Interface
Constructors
Accessors
• 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.
string
• Abstract set alt(alt): void
| Name | Type |
|---|---|
alt | string |
void
• 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.
boolean
• Abstract get height(): number
An integer value that reflects the height HTML attribute, indicating the rendered height of the image in CSS pixels.
number
• Abstract set height(height): void
| Name | Type |
|---|---|
height | number |
void
• 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.
number
• 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.
number
• Abstract get onerror(): Function
Function
• Abstract set onerror(onerror): void
| Name | Type |
|---|---|
onerror | Function |
void
• Abstract get onload(): Function
Function
• Abstract set onload(onload): void
| Name | Type |
|---|---|
onload | Function |
void
• 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.
string
• Abstract set src(src): void
| Name | Type |
|---|---|
src | string |
void
• 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.
number
• Abstract set width(width): void
| Name | Type |
|---|---|
width | number |
void