-
-
Notifications
You must be signed in to change notification settings - Fork 427
/
Copy pathFiles.cs
216 lines (153 loc) · 5.91 KB
/
Files.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET.
// Licensed under the Apache License, Version 2.0.
using System;
using System.IO;
namespace Magick.NET;
public static class Files
{
public static string CirclePNG
=> Root + @"Images/Circle.png";
public static string CMYKJPG
=> Root + @"Images/CMYK.jpg";
public static string CorruptPNG
=> Root + @"Images/Corrupt.png";
public static string ConnectedComponentsPNG
=> Root + @"Images/ConnectedComponents.png";
public static string EightBimJPG
=> Root + @"Images/8Bim.jpg";
public static string EightBimTIF
=> Root + @"Images/8Bim.tif";
public static string FujiFilmFinePixS1ProGIF
=> Root + @"Images/FujiFilmFinePixS1Pro.gif";
public static string FujiFilmFinePixS1ProJPG
=> Root + @"Images/FujiFilmFinePixS1Pro.jpg";
public static string ExifUndefTypeJPG
=> Root + @"Images/ExifUndefType.jpg";
public static string FujiFilmFinePixS1ProPNG
=> Root + @"Images/FujiFilmFinePixS1Pro.png";
public static string ImageMagickJPG
=> Root + @"Images/ImageMagick.jpg";
public static string InvitationTIF
=> Root + @"Images/Invitation.tif";
public static string ImageMagickTXT
=> Root + @"Images/ImageMagick.txt";
public static string ImageMagickICO
=> Root + @"Images/ImageMagick.ico";
public static string LetterJPG
=> Root + @"Images/Letter.jpg";
public static string MagickNETIconPNG
=> Root + @"Images/Magick.NET.icon.png";
public static string Missing
=> @"/Foo/Bar.png";
public static string NoisePNG
=> Root + @"Images/Noise.png";
public static string PictureJPG
=> Root + @"Images/Picture.jpg";
public static string RedPNG
=> Root + @"Images/Red.png";
public static string RoseSparkleGIF
=> Root + @"Images/RöseSparkle.gif";
public static string Root { get; } = GetRoot();
public static string SnakewarePNG
=> Root + @"Images/Snakeware.png";
public static string VicelandPNG
=> Root + "Images/viceland.png";
public static string WandICO
=> Root + @"Images/wand.ico";
public static string WhiteJPG
=> Root + @"Images/white.jpg";
public static string WireframeTIF
=> Root + @"Images/wireframe.tif";
public static string TestPNG
=> Root + @"Images/Test.png";
private static string GetRoot()
{
var paths = new[]
{
@"../../../../",
@"../../../../../Magick.NET.Tests/", // Other tests projects
};
foreach (var path in paths)
{
var directory = Path.GetFullPath(path).Replace('\\', '/');
if (Directory.Exists(directory + "Images"))
return directory;
}
throw new InvalidOperationException($"Unable to find the images folder, current directory is: {Path.GetFullPath(".")}");
}
public static class Builtin
{
public static string Logo
=> "logo:";
public static string Rose
=> "rose:";
public static string Wizard
=> "wizard:";
}
public static class Coders
{
public static string AnimatedPNGexampleBouncingBeachBallPNG
=> Root + "Images/Coders/Animated_PNG_example_bouncing_beach_ball.png";
public static string CartoonNetworkStudiosLogoAI
=> Root + @"Images/Coders/CN Studios Logo.ai";
public static string GrimJP2
=> Root + @"Images/Coders/grim.jp2";
public static string EmptyExifAVIF
=> Root + @"Images/Coders/empty-exif.avif";
public static string IgnoreTagTIF
=> Root + @"Images/Coders/IgnoreTag.tif";
public static string InvalidCrcBMP
=> Root + "Images/Coders/InvalidCrc.bmp";
public static string LayerStylesSamplePSD
=> Root + @"Images/Coders/layer-styles-sample.psd";
public static string RawKodakDC50KDC
=> Root + @"Images/Coders/RAW_KODAK_DC50.KDC";
public static string PageTIF
=> Root + @"Images/Coders/Page.tif";
public static string PdfExamplePasswordOriginalPDF
=> Root + @"Images/Coders/pdf-example-password.original.pdf";
public static string PixelTIF
=> Root + @"Images/Coders/Pixel.tif";
public static string PlayerPSD
=> Root + @"Images/Coders/Player.psd";
public static string RowsPerStripTIF
=> Root + @"Images/Coders/RowsPerStrip.tif";
public static string SamplePDF
=> Root + @"Images/Coders/sample.pdf";
public static string SwedenHeartEPS
=> Root + @"Images/Coders/SwedenHeart.eps";
public static string TestDDS
=> Root + @"Images/Coders/Test.dds";
public static string TestJP2
=> Root + @"Images/Coders/Test.jp2";
public static string TestMNG
=> Root + @"Images/Coders/Test.mng";
public static string TestMP4
=> Root + @"Images/Coders/Test.mp4";
public static string WizardPSD
=> Root + @"Images/Coders/wizard.psd";
}
public static class Fonts
{
public static string Arial
=> Root + @"Fonts/arial.ttf";
public static string CourierNew
=> Root + @"Fonts/cour.ttf";
public static string GloockRegular
=> Root + @"Fonts/Gloock-Regular.ttf";
public static string KaushanScript
=> Root + @"Fonts/KaushanScript-Regular.ttf";
public static string PhillySans
=> Root + @"Fonts/PhillySans.otf";
}
public static class Logos
{
public static string MagickNETSVG
=> Root + @"../../logo/Magick.NET.svg";
}
public static class Patterns
{
public static string Checkerboard
=> "pattern:checkerboard";
}
}