Load
Load an image。
Parameters
Parameter | Type | Description |
---|---|---|
source |
| Image resource. |
source
parameters support the following types:
Support type | Data type |
---|---|
Path of the image in filesystem. |
|
URL of an image. |
|
Base64 encoded image data. |
|
The instance of |
|
The instance of the types that implement the |
|
The instance of |
|
Return Values
The instance of *imgo.Image
.
Examples
Image Filepath
Image URL
Base64 encoded image data
The instance of *os.File
*os.File
The instance of the types that implement the image.Image
interface
image.Image
interfaceThe instance of *imgo.Image
*imgo.Image
Last updated