Load
Last updated
Last updated
Load an image。
Parameter | Type | Description |
---|---|---|
source
parameters support the following types:
Support type | Data type |
---|---|
The instance of *imgo.Image
.
*os.File
image.Image
interface*imgo.Image
source
interface{}
Image resource.
Path of the image in filesystem.
string
或 []byte
URL of an image.
string
或 []byte
Base64 encoded image data.
string
或 []byte
The instance of *os.File
.
*os.File
The instance of the types that implement the image.Image
interface.
image.Image
and the types that implement the image.Image
interface.
The instance of *imgo.Image
.
*imgo.Image