Documentation
¶
Overview ¶
Package imageload loads images off the UI thread and draws them with a placeholder until they arrive. ui/markdown uses it for Markdown images.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct {
// contains filtered or unexported fields
}
Asset is shared image data. Read its state under the UI lock. A completed load invalidates windows through core.Update.
func Load ¶
Load reads a local path, file URL, HTTP(S) URL or data URL in the background. A nil loader uses core.DecodeImage. The request has a 15-second deadline.
Click to show internal directories.
Click to hide internal directories.