File tree 2 files changed +22
-20
lines changed
2 files changed +22
-20
lines changed Original file line number Diff line number Diff line change 6
6
/**
7
7
* Specifies the types of virtual pixel methods.
8
8
*/
9
- export enum VirtualPixelMethod {
9
+ export const VirtualPixelMethod = {
10
10
/**
11
11
* Undefined.
12
12
*/
13
- Undefined ,
13
+ Undefined : 0 ,
14
14
15
15
/**
16
16
* Background.
17
17
*/
18
- Background ,
18
+ Background : 1 ,
19
19
20
20
/**
21
21
* Dither.
22
22
*/
23
- Dither ,
23
+ Dither : 2 ,
24
24
25
25
/**
26
26
* Edge.
27
27
*/
28
- Edge ,
28
+ Edge : 3 ,
29
29
30
30
/**
31
31
* Mirror.
32
32
*/
33
- Mirror ,
33
+ Mirror : 4 ,
34
34
35
35
/**
36
36
* Random.
37
37
*/
38
- Random ,
38
+ Random : 5 ,
39
39
40
40
/**
41
41
* Tile.
42
42
*/
43
- Tile ,
43
+ Tile : 6 ,
44
44
45
45
/**
46
46
* Transparent.
47
47
*/
48
- Transparent ,
48
+ Transparent : 7 ,
49
49
50
50
/**
51
51
* Mask.
52
52
*/
53
- Mask ,
53
+ Mask : 8 ,
54
54
55
55
/**
56
56
* Black.
57
57
*/
58
- Black ,
58
+ Black : 9 ,
59
59
60
60
/**
61
61
* Gray.
62
62
*/
63
- Gray ,
63
+ Gray : 10 ,
64
64
65
65
/**
66
66
* White.
67
67
*/
68
- White ,
68
+ White : 11 ,
69
69
70
70
/**
71
71
* Horizontal tile.
72
72
*/
73
- HorizontalTile ,
73
+ HorizontalTile : 12 ,
74
74
75
75
/**
76
76
* Vertical tile.
77
77
*/
78
- VerticalTile ,
78
+ VerticalTile : 13 ,
79
79
80
80
/**
81
81
* Horizontal tile edge.
82
82
*/
83
- HorizontalTileEdge ,
83
+ HorizontalTileEdge : 14 ,
84
84
85
85
/**
86
86
* Vertical tile edge.
87
87
*/
88
- VerticalTileEdge ,
88
+ VerticalTileEdge : 15 ,
89
89
90
90
/**
91
91
* Checker tile.
92
92
*/
93
- CheckerTile
94
- }
93
+ CheckerTile : 16
94
+ } as const ;
95
+
96
+ export type VirtualPixelMethod = typeof VirtualPixelMethod [ keyof typeof VirtualPixelMethod ] ;
Original file line number Diff line number Diff line change @@ -2296,7 +2296,7 @@ export class MagickImage extends NativeInstance implements IMagickImage {
2296
2296
}
2297
2297
2298
2298
get virtualPixelMethod ( ) : VirtualPixelMethod {
2299
- return ImageMagick . _api . _MagickImage_VirtualPixelMethod_Get ( this . _instance ) ;
2299
+ return < VirtualPixelMethod > ImageMagick . _api . _MagickImage_VirtualPixelMethod_Get ( this . _instance ) ;
2300
2300
}
2301
2301
set virtualPixelMethod ( value : VirtualPixelMethod ) {
2302
2302
this . useExceptionPointer ( exception => {
You can’t perform that action at this time.
0 commit comments