class MagickImage
implements IMagickImage
extends NativeInstance
Re-export
import { MagickImage } from "https://deno.land/x/lume@v1.15.0/deps/imagick.ts";
Constructors
new
private
MagickImage(instance: number, settings: MagickSettings)Properties
private
readonly
_settings: MagickSettingsbackgroundColor: MagickColor
borderColor: MagickColor
colorFuzz: Percentage
colorSpace: ColorSpace
format: MagickFormat
interpolate: PixelInterpolateMethod
orientation: OrientationType
page: MagickGeometry
virtualPixelMethod: VirtualPixelMethod
Methods
private
fromBool(value: boolean): numberprivate
privateSigmoidalContrast(): voidprivate
readFromArray(): voidprivate
readOrPing(ping: boolean,
fileNameOrArrayOrColor: string | Uint8Array | MagickColor,
settingsOrWidth?: MagickReadSettings | number,
height?: number,
private
toBool(value: number): booleanprivate
valueOrDefault<TType>(value: TType | undefined, defaultValue: TType): TTypeprotected
_instanceNotInitialized(): voidalpha(value: AlphaOption): void
autoOrient(): void
autoThreshold(method: AutoThresholdMethod): void
blur(): void
blur(radius: number, sigma: number): void
border(size: number): void
border(width: number, height: number): void
channelOffset(pixelChannel: PixelChannel): number
charcoal(): void
charcoal(radius: number, sigma: number): void
clahe(): void
xTiles: number,
yTiles: number,
numberBins: number,
clipLimit: number,
clahe(): void
clone(func: (image: IMagickImage) => void): void
clone(func: (image: IMagickImage) => Promise<void>): Promise<void>
colorAlpha(color: MagickColor): void
compare(image: IMagickImage, metric: ErrorMetric): number
compare(): number
composite(image: IMagickImage): void
composite(image: IMagickImage, compose: CompositeOperator): void
composite(): void
composite(): void
composite(): void
composite(image: IMagickImage, point: Point): void
composite(): void
composite(): void
composite(): void
composite(): void
composite(): void
compositeGravity(image: IMagickImage, gravity: Gravity): void
compositeGravity(): void
compositeGravity(): void
compositeGravity(): void
compositeGravity(): void
compositeGravity(): void
compositeGravity(): void
compositeGravity(): void
compositeGravity(): void
compositeGravity(): void
compositeGravity(): void
image: IMagickImage,
gravity: Gravity,
compose: CompositeOperator,
point: Point,
args: string,
channels: Channels,
contrast(): void
contrastStretch(blackPoint: Percentage): void
contrastStretch(blackPoint: Percentage, whitePoint: Percentage): void
crop(geometry: MagickGeometry): void
crop(geometry: MagickGeometry, gravity: Gravity): void
crop(width: number, height: number): void
deskew(threshold: Percentage): number
distort(method: DistortMethod, params: number[]): void
distort(): void
evaluate(): void
evaluate(): void
evaluate(): void
evaluate(): void
extent(width: number, height: number): void
extent(): void
extent(geometry: MagickGeometry): void
extent(geometry: MagickGeometry, gravity: Gravity): void
extent(): void
extent(geometry: MagickGeometry, backgroundColor: MagickColor): void
getArtifact(name: string): string | null
getAttribute(name: string): string | null
getPixels<TReturnType>(func: (pixels: IPixelCollection) => TReturnType): TReturnType
getProfile(name: string): IImageProfile | null
getWriteMask(func: (mask: IMagickImage | null) => void): void
getWriteMask(func: (mask: IMagickImage | null) => Promise<void>): Promise<void>
histogram(): Map<string, number>
inverseContrast(): void
inverseSigmoidalContrast(contrast: number): void
inverseSigmoidalContrast(contrast: number, midpointPercentage: Percentage): void
inverseSigmoidalContrast(contrast: number, midpoint: number): void
inverseSigmoidalContrast(): void
level(blackPoint: Percentage, whitePoint: Percentage): void
level(): void
level(): void
level(): void
liquidRescale(geometry: MagickGeometry): void
liquidRescale(width: number, height: number): void
modulate(brightness: Percentage): void
modulate(brightness: Percentage, saturation: Percentage): void
modulate(): void
negate(): void
negateGrayScale(): void
normalize(): void
oilPaint(): void
oilPaint(radius: number): void
ping(fileName: string, settings?: MagickReadSettings): void
ping(array: Uint8Array, settings?: MagickReadSettings): void
read(): void
read(fileName: string, settings?: MagickReadSettings): void
read(array: Uint8Array, settings?: MagickReadSettings): void
readFromCanvas(canvas: HTMLCanvasElement): void
removeArtifact(name: string): void
removeAttribute(name: string): void
removeWriteMask(): void
repage(): void
resize(geometry: MagickGeometry): void
resize(width: number, height: number): void
rotate(degrees: number): void
separate(func: (images: IMagickImageCollection) => void): void
separate(func: (images: IMagickImageCollection) => Promise<void>): Promise<void>
separate(func: (images: IMagickImageCollection) => void, channels: Channels): void
separate(func: (images: IMagickImageCollection) => Promise<void>, channels: Channels): Promise<void>
setArtifact(name: string, value: string): void
setArtifact(name: string, value: boolean): void
setAttribute(name: string, value: string): void
setWriteMask(image: IMagickImage): void
sharpen(): void
sharpen(radius: number, sigma: number): void
shave(leftRight: number, topBottom: number)
sigmoidalContrast(contrast: number): void
sigmoidalContrast(contrast: number, midpointPercentage: Percentage): void
sigmoidalContrast(contrast: number, midpoint: number): void
sigmoidalContrast(): void
strip(): void
trim(): void
trim(percentage: Percentage): void
vignette(): void
vignette(): void
radius: number,
sigma: number,
x: number,
y: number,
wave(): void
wave(): void
write(func: (data: Uint8Array) => void, format?: MagickFormat): void
write(func: (data: Uint8Array) => Promise<void>, format?: MagickFormat): Promise<void>
writeToCanvas(canvas: HTMLCanvasElement): void
Static Methods
private
createInstance(): number_createFromImage(instance: number, settings: MagickSettings): MagickImage
_use<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType
_use<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>