Skip to content

Latest commit

 

History

History
128 lines (74 loc) · 2.59 KB

imagehome.md

File metadata and controls

128 lines (74 loc) · 2.59 KB

wasm-imagemagick > ImageHome

Interface: ImageHome

Manager for MagickFiles.

Hierarchy

ImageHome

Index

Methods


Methods

addBuiltInImages

addBuiltInImages(): Promise<void>

Defined in imageHome.ts:26

Add ImageMagick built-in images like rose:, logo:, etc to this execution context so they are present in getAll().

Returns: Promise<void>


get

get(name: string): Promise<MagickInputFile>

Defined in imageHome.ts:12

Get a file by name.

Parameters:

Name Type
name string

Returns: Promise<MagickInputFile>


getAll

getAll(): Promise<MagickInputFile[]>

Defined in imageHome.ts:22

Get all the files currently available in this context.

Returns: Promise<MagickInputFile[]>


isRegistered

isRegistered(name: string): boolean

Defined in imageHome.ts:18

Parameters:

Name Type
name string

Returns: boolean


register

register(file: MagickFile, name?: string): void

Defined in imageHome.ts:17

Programmatically add new files.

Parameters:

Name Type
file MagickFile
Optional name string

Returns: void


remove

remove(names: string[]): MagickInputFile[]

Defined in imageHome.ts:31

Remove files by name.

Parameters:

Name Type
names string[]

Returns: MagickInputFile[] the files actually removed.