ailoy-web
Preparing search index...
ImageContent
Class ImageContent
Index
Constructors
constructor
Properties
image_
url
type
Methods
from
Array
Buffer
from
Bytes
from
File
from
Url
from
Vips
Constructors
constructor
new
ImageContent
(
type
:
"image_url"
,
image_url
:
{
url
:
string
}
)
:
ImageContent
Parameters
type
:
"image_url"
image_url
:
{
url
:
string
}
Returns
ImageContent
Properties
image_
url
image_url
:
{
url
:
string
}
type
type
:
"image_url"
Methods
Static
from
Array
Buffer
fromArrayBuffer
(
buffer
:
ArrayBuffer
,
format
:
string
&
{}
|
"png"
|
"jpg"
|
"jpeg"
|
"gif"
,
)
:
ImageContent
Parameters
buffer
:
ArrayBuffer
format
:
string
&
{}
|
"png"
|
"jpg"
|
"jpeg"
|
"gif"
Returns
ImageContent
Static
from
Bytes
fromBytes
(
data
:
Uint8Array
<
ArrayBufferLike
>
,
format
:
string
&
{}
|
"png"
|
"jpg"
|
"jpeg"
|
"gif"
,
)
:
ImageContent
Parameters
data
:
Uint8Array
<
ArrayBufferLike
>
format
:
string
&
{}
|
"png"
|
"jpg"
|
"jpeg"
|
"gif"
Returns
ImageContent
Static
from
File
fromFile
(
file
:
File
)
:
Promise
<
ImageContent
>
Parameters
file
:
File
Returns
Promise
<
ImageContent
>
Static
from
Url
fromUrl
(
url
:
string
)
:
ImageContent
Parameters
url
:
string
Returns
ImageContent
Static
from
Vips
fromVips
(
image
:
Image
)
:
ImageContent
Parameters
image
:
Image
Returns
ImageContent
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
image_
url
type
Methods
from
Array
Buffer
from
Bytes
from
File
from
Url
from
Vips
ailoy-web
Loading...