class MagickImage
implements IMagickImage
extends NativeInstance
Re-export
import { MagickImage } from "https://deno.land/x/lume@v1.18.5/deps/imagick.ts";
Constructors
new
private
MagickImage(instance: number, settings: MagickSettings)Properties
private
readonly
_settings: MagickSettingsbackgroundColor: MagickColor
borderColor: MagickColor
readonly
boundingBox: MagickGeometry | nullreadonly
channels: ReadonlyArray<PixelChannel>chromaticity: ChromaticityInfo
classType: ClassType
colorFuzz: Percentage
colorSpace: ColorSpace
colorType: ColorType
compose: CompositeOperator
readonly
compression: CompressionMethoddensity: Density
format: MagickFormat
gifDisposeMethod: GifDisposeMethod
readonly
interlace: Interlaceinterpolate: PixelInterpolateMethod
inverseOpaque: (target: MagickColor, fill: MagickColor) => unknown
inverseTransparent: (color: MagickColor) => unknown
opaque: (target: MagickColor, fill: MagickColor) => unknown
orientation: OrientationType
page: MagickGeometry
readonly
settings: MagickSettingsvirtualPixelMethod: VirtualPixelMethod
Methods
private
_contrast(enhance: boolean)private
_opaque()private
_sigmoidalContrast(sharpen: boolean,
contrast: number,
midpointOrPercentage?: number | Percentage,
channelsOrUndefined?: Channels,
private
_transparent(color: MagickColor, invert: boolean)private
fromBool(value: boolean): numberprivate
readFromArray(): voidprivate
readOrPing(ping: boolean,
fileNameOrArrayOrColor: string | ByteArray | MagickColor,
settingsOrWidthOrUndefined?: MagickReadSettings | number,
heightOrUndefined?: number,
private
toBool(value: number): booleanprivate
valueOrDefault<TType>(value: TType | undefined, defaultValue: TType): TTypeprotected
_instanceNotInitialized(): void_use<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType
_use<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>
alpha(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
brightnessContrast(brightness: Percentage, contrast: Percentage): void
brightnessContrast(): 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<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType
clone<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>
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,
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
cropToTiles(geometry: MagickGeometry): IMagickImageCollection
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
flip(): void
flop(): void
getArtifact(name: string): string | null
getAttribute(name: string): string | null
getPixels<TReturnType>(func: (pixels: IPixelCollection) => TReturnType): TReturnType
getPixels<TReturnType>(func: (pixels: IPixelCollection) => Promise<TReturnType>): Promise<TReturnType>
getProfile(name: string): IImageProfile | null
getWriteMask<TReturnType>(func: (mask: IMagickImage | null) => TReturnType): TReturnType
getWriteMask<TReturnType>(func: (mask: IMagickImage | null) => Promise<TReturnType>): Promise<TReturnType>
grayscale(method?: PixelIntensityMethod): void
histogram(): Map<string, number>
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
linearStretch(blackPoint: Percentage, whitePoint: Percentage): 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: ByteArray, settings?: MagickReadSettings): void
read(): void
read(fileName: string, settings?: MagickReadSettings): void
read(array: ByteArray, settings?: MagickReadSettings): void
readFromCanvas(canvas: HTMLCanvasElement): void
removeArtifact(name: string): void
removeAttribute(name: string): void
removeProfile(name: string): void
removeWriteMask(): void
repage(): void
resize(geometry: MagickGeometry): void
resize(width: number, height: number): void
rotate(degrees: number): void
separate<TReturnType>(func: (images: IMagickImageCollection) => TReturnType): TReturnType
separate<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>
separate<TReturnType>(func: (images: IMagickImageCollection) => TReturnType, channels: Channels): TReturnType
separate<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType>, channels: Channels): Promise<TReturnType>
sepiaTone(): void
setArtifact(name: string, value: string): void
setArtifact(name: string, value: boolean): void
setAttribute(name: string, value: string): void
setProfile(name: string, data: ByteArray): 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
solarize(): void
splice(geometry: MagickGeometry): void
statistics(channels: Channels): IStatistics
strip(): void
transparent(color: MagickColor): void
trim(): void
trim(percentage: Percentage): void
vignette(): void
vignette(): void
radius: number,
sigma: number,
x: number,
y: number,
wave(): void
wave(): void
write<TReturnType>(func: (data: Uint8Array) => TReturnType): TReturnType
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType
write<TReturnType>(func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>
writeToCanvas(canvas: HTMLCanvasElement): void
Static Methods
private
createInstance(): number_clone(image: MagickImage): MagickImage
_createFromImage(instance: number, settings: MagickSettings): MagickImage
_use<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType
_use<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>
create(fileName: string, settings?: MagickReadSettings): IMagickImage
create(array: ByteArray, settings?: MagickReadSettings): IMagickImage