Image

Table of contents

Image interface defines the image that is used for drawing operations on the Canvas

Interface description

Height() float64

Returns the height of the image in pixels. While LoadingStatus() != ImageReady returns 0

LoadingError() string

If LoadingStatus() == ImageLoadingError then returns the error text, "" otherwise

LoadingStatus() int

Returns the status of the image loading: ImageLoading (0), ImageReady (1), ImageLoadingError (2)

URL() string

Returns the url of the image

Width() float64

Returns the width of the image in pixels. While LoadingStatus() != ImageReady returns 0