|
3 | 3 | Licensed under the Apache License, Version 2.0.
|
4 | 4 | */
|
5 | 5 |
|
| 6 | +import { AlphaAction } from './enums/alpha-action'; |
6 | 7 | import { AsyncImageCallback, AsyncImageCollectionCallback, ImageCallback, ImageCollectionCallback, SyncImageCallback, SyncImageCollectionCallback } from './types/callbacks';
|
7 | 8 | import { AutoThresholdMethod } from './enums/auto-threshold-method';
|
8 | 9 | import { ByteArray, _isByteArray } from './byte-array';
|
@@ -42,7 +43,6 @@ import { IDrawable } from './drawing/drawable';
|
42 | 43 | import { ImageMagick } from './image-magick';
|
43 | 44 | import { ImageProfile, IImageProfile } from './profiles/image-profile';
|
44 | 45 | import { Interlace } from './enums/interlace';
|
45 |
| -import { MagickAlphaOption } from './enums/magick-alpha-option'; |
46 | 46 | import { MagickColor, IMagickColor } from './magick-color';
|
47 | 47 | import { MagickError } from './magick-error';
|
48 | 48 | import { MagickErrorInfo } from './types/magick-error-info';
|
@@ -440,10 +440,10 @@ export interface IMagickImage extends IDisposable {
|
440 | 440 | addNoise(noiseType: NoiseType, attenuate: number, channels: Channels): void;
|
441 | 441 |
|
442 | 442 | /**
|
443 |
| - * Applies the specified alpha option. |
444 |
| - * @param value The option to use. |
| 443 | + * Applies the specified alpha action. |
| 444 | + * @param value The action to use. |
445 | 445 | */
|
446 |
| - alpha(value: MagickAlphaOption): void; |
| 446 | + alpha(value: AlphaAction): void; |
447 | 447 |
|
448 | 448 | /**
|
449 | 449 | * Annotate using specified text, and bounding area.
|
@@ -2213,7 +2213,7 @@ export class MagickImage extends NativeInstance implements IMagickImage {
|
2213 | 2213 | set hasAlpha(value: boolean) {
|
2214 | 2214 | this.useExceptionPointer(exception => {
|
2215 | 2215 | if (value)
|
2216 |
| - this.alpha(MagickAlphaOption.Opaque); |
| 2216 | + this.alpha(AlphaAction.Opaque); |
2217 | 2217 |
|
2218 | 2218 | ImageMagick._api._MagickImage_HasAlpha_Set(this._instance, this.fromBool(value), exception);
|
2219 | 2219 | });
|
@@ -2430,7 +2430,7 @@ export class MagickImage extends NativeInstance implements IMagickImage {
|
2430 | 2430 | });
|
2431 | 2431 | }
|
2432 | 2432 |
|
2433 |
| - alpha(value: MagickAlphaOption): void { |
| 2433 | + alpha(value: AlphaAction): void { |
2434 | 2434 | this.useExceptionPointer(exception => {
|
2435 | 2435 | ImageMagick._api._MagickImage_SetAlpha(this._instance, value, exception);
|
2436 | 2436 | });
|
|
0 commit comments