117 instantiations of DpiPath
Microsoft.Maui.Resizetizer (117)
AndroidAdaptiveIconGenerator.cs (4)
150
results.Add(new ResizedImageInfo { Dpi = new
DpiPath
("mipmap-anydpi-v26", 1), Filename = adaptiveIconDestination });
151
results.Add(new ResizedImageInfo { Dpi = new
DpiPath
("mipmap-anydpi-v26", 1, "_round"), Filename = adaptiveIconRoundDestination });
162
results.Add(new ResizedImageInfo { Dpi = new
DpiPath
("mipmap-anydpi-v26", 1), Filename = adaptiveIconDestination });
163
results.Add(new ResizedImageInfo { Dpi = new
DpiPath
("mipmap-anydpi-v26", 1, "_round"), Filename = adaptiveIconRoundDestination });
AppleIconAssetsGenerator.cs (2)
46
new ResizedImageInfo { Dpi = new
DpiPath
("", 1), Filename = appIconSetContentsFile }
92
new ResizedImageInfo { Dpi = new
DpiPath
("", 1), Filename = appIconSetContentsFile }
DpiPath.cs (110)
49
new
DpiPath
("drawable", 1.0m);
54
new
DpiPath
("drawable-mdpi", 1.0m),
55
new
DpiPath
("drawable-hdpi", 1.5m),
56
new
DpiPath
("drawable-xhdpi", 2.0m),
57
new
DpiPath
("drawable-xxhdpi", 3.0m),
58
new
DpiPath
("drawable-xxxhdpi", 4.0m),
65
new
DpiPath
("mipmap-mdpi", 1.0m, size: new SKSize(48, 48)),
66
new
DpiPath
("mipmap-hdpi", 1.5m, size: new SKSize(48, 48)),
67
new
DpiPath
("mipmap-xhdpi", 2.0m, size: new SKSize(48, 48)),
68
new
DpiPath
("mipmap-xxhdpi", 3.0m, size: new SKSize(48, 48)),
69
new
DpiPath
("mipmap-xxxhdpi", 4.0m, size: new SKSize(48, 48)),
71
new
DpiPath
("mipmap-mdpi", 1.0m, "_round", size: new SKSize(48, 48), clip: ClipShape.Circle),
72
new
DpiPath
("mipmap-hdpi", 1.5m, "_round", size: new SKSize(48, 48), clip: ClipShape.Circle),
73
new
DpiPath
("mipmap-xhdpi", 2.0m, "_round", size: new SKSize(48, 48), clip: ClipShape.Circle),
74
new
DpiPath
("mipmap-xxhdpi", 3.0m, "_round", size: new SKSize(48, 48), clip: ClipShape.Circle),
75
new
DpiPath
("mipmap-xxxhdpi", 4.0m, "_round", size: new SKSize(48, 48), clip: ClipShape.Circle),
81
new
DpiPath
("mipmap-mdpi", 1.0m, size: new SKSize(108, 108)),
82
new
DpiPath
("mipmap-hdpi", 1.5m, size: new SKSize(108, 108)),
83
new
DpiPath
("mipmap-xhdpi", 2.0m, size: new SKSize(108, 108)),
84
new
DpiPath
("mipmap-xxhdpi", 3.0m, size: new SKSize(108, 108)),
85
new
DpiPath
("mipmap-xxxhdpi", 4.0m, size: new SKSize(108, 108)),
94
new
DpiPath
("Resources", 1.0m);
99
new
DpiPath
("", 1.0m),
100
new
DpiPath
("", 2.0m, null,"@2x"),
101
new
DpiPath
("", 3.0m, null,"@3x"),
108
new
DpiPath
(AppIconPath, 2.0m, "20x20", "@2x", new SKSize(20, 20), new [] { "iphone", "ipad" }),
109
new
DpiPath
(AppIconPath, 3.0m, "20x20", "@3x", new SKSize(20, 20), new [] { "iphone" }),
112
new
DpiPath
(AppIconPath, 2.0m, "29x29", "@2x", new SKSize(29, 29), new [] { "iphone", "ipad" }),
113
new
DpiPath
(AppIconPath, 3.0m, "29x29", "@3x", new SKSize(29, 29), new [] { "iphone" }),
116
new
DpiPath
(AppIconPath, 2.0m, "40x40", "@2x", new SKSize(40, 40), new [] { "iphone", "ipad" }),
117
new
DpiPath
(AppIconPath, 3.0m, "40x40", "@3x", new SKSize(40, 40), new [] { "iphone" }),
120
new
DpiPath
(AppIconPath, 2.0m, "60x60", "@2x", new SKSize(60, 60), new [] { "iphone" }),
121
new
DpiPath
(AppIconPath, 3.0m, "60x60", "@3x", new SKSize(60, 60), new [] { "iphone" }),
124
new
DpiPath
(AppIconPath, 2.0m, "76x76", "@2x", new SKSize(76, 76), new [] { "ipad" }),
125
new
DpiPath
(AppIconPath, 2.0m, "83.5x83.5", "@2x", new SKSize(83.5f, 83.5f), new [] { "ipad" }),
128
new
DpiPath
(AppIconPath, 1.0m, "ItunesArtwork", null, new SKSize(1024, 1024), new [] { "ios-marketing" }),
137
new
DpiPath
(OutputPath, 1.0m, null, ".scale-100");
142
new
DpiPath
(OutputPath, 1.00m, null, ".scale-100"),
143
new
DpiPath
(OutputPath, 1.25m, null, ".scale-125"),
144
new
DpiPath
(OutputPath, 1.50m, null, ".scale-150"),
145
new
DpiPath
(OutputPath, 2.00m, null, ".scale-200"),
146
new
DpiPath
(OutputPath, 4.00m, null, ".scale-400"),
152
new
DpiPath
(OutputPath, 1.00m, "SplashScreen", ".scale-100", new SKSize(620, 300)),
153
new
DpiPath
(OutputPath, 1.25m, "SplashScreen", ".scale-125", new SKSize(620, 300)),
154
new
DpiPath
(OutputPath, 1.50m, "SplashScreen", ".scale-150", new SKSize(620, 300)),
155
new
DpiPath
(OutputPath, 2.00m, "SplashScreen", ".scale-200", new SKSize(620, 300)),
156
new
DpiPath
(OutputPath, 4.00m, "SplashScreen", ".scale-400", new SKSize(620, 300)),
164
new
DpiPath
(OutputPath, 1.00m, "Logo", ".scale-100", new SKSize(44, 44)),
165
new
DpiPath
(OutputPath, 1.25m, "Logo", ".scale-125", new SKSize(44, 44)),
166
new
DpiPath
(OutputPath, 1.50m, "Logo", ".scale-150", new SKSize(44, 44)),
167
new
DpiPath
(OutputPath, 2.00m, "Logo", ".scale-200", new SKSize(44, 44)),
168
new
DpiPath
(OutputPath, 4.00m, "Logo", ".scale-400", new SKSize(44, 44)),
170
new
DpiPath
(OutputPath, 1.00m, "Logo", ".targetsize-16", new SKSize(16, 16)),
171
new
DpiPath
(OutputPath, 1.00m, "Logo", ".targetsize-24", new SKSize(24, 24)),
172
new
DpiPath
(OutputPath, 1.00m, "Logo", ".targetsize-32", new SKSize(32, 32)),
173
new
DpiPath
(OutputPath, 1.00m, "Logo", ".targetsize-48", new SKSize(48, 48)),
174
new
DpiPath
(OutputPath, 1.00m, "Logo", ".targetsize-256", new SKSize(256, 256)),
176
new
DpiPath
(OutputPath, 1.00m, "Logo", ".altform-unplated_targetsize-16", new SKSize(16, 16)),
177
new
DpiPath
(OutputPath, 1.00m, "Logo", ".altform-unplated_targetsize-24", new SKSize(24, 24)),
178
new
DpiPath
(OutputPath, 1.00m, "Logo", ".altform-unplated_targetsize-32", new SKSize(32, 32)),
179
new
DpiPath
(OutputPath, 1.00m, "Logo", ".altform-unplated_targetsize-48", new SKSize(48, 48)),
180
new
DpiPath
(OutputPath, 1.00m, "Logo", ".altform-unplated_targetsize-256", new SKSize(256, 256)),
182
new
DpiPath
(OutputPath, 1.00m, "Logo", ".altform-lightunplated_targetsize-16", new SKSize(16, 16)),
183
new
DpiPath
(OutputPath, 1.00m, "Logo", ".altform-lightunplated_targetsize-24", new SKSize(24, 24)),
184
new
DpiPath
(OutputPath, 1.00m, "Logo", ".altform-lightunplated_targetsize-32", new SKSize(32, 32)),
185
new
DpiPath
(OutputPath, 1.00m, "Logo", ".altform-lightunplated_targetsize-48", new SKSize(48, 48)),
186
new
DpiPath
(OutputPath, 1.00m, "Logo", ".altform-lightunplated_targetsize-256", new SKSize(256, 256)),
193
new
DpiPath
(OutputPath, 1.00m, "StoreLogo", ".scale-100", new SKSize(50, 50)),
194
new
DpiPath
(OutputPath, 1.25m, "StoreLogo", ".scale-125", new SKSize(50, 50)),
195
new
DpiPath
(OutputPath, 1.50m, "StoreLogo", ".scale-150", new SKSize(50, 50)),
196
new
DpiPath
(OutputPath, 2.00m, "StoreLogo", ".scale-200", new SKSize(50, 50)),
197
new
DpiPath
(OutputPath, 4.00m, "StoreLogo", ".scale-400", new SKSize(50, 50)),
204
new
DpiPath
(OutputPath, 1.00m, "SmallTile", ".scale-100", new SKSize(71, 71)),
205
new
DpiPath
(OutputPath, 1.25m, "SmallTile", ".scale-125", new SKSize(71, 71)),
206
new
DpiPath
(OutputPath, 1.50m, "SmallTile", ".scale-150", new SKSize(71, 71)),
207
new
DpiPath
(OutputPath, 2.00m, "SmallTile", ".scale-200", new SKSize(71, 71)),
208
new
DpiPath
(OutputPath, 4.00m, "SmallTile", ".scale-400", new SKSize(71, 71)),
215
new
DpiPath
(OutputPath, 1.00m, "MediumTile", ".scale-100", new SKSize(150, 150)),
216
new
DpiPath
(OutputPath, 1.25m, "MediumTile", ".scale-125", new SKSize(150, 150)),
217
new
DpiPath
(OutputPath, 1.50m, "MediumTile", ".scale-150", new SKSize(150, 150)),
218
new
DpiPath
(OutputPath, 2.00m, "MediumTile", ".scale-200", new SKSize(150, 150)),
219
new
DpiPath
(OutputPath, 4.00m, "MediumTile", ".scale-400", new SKSize(150, 150)),
226
new
DpiPath
(OutputPath, 1.00m, "WideTile", ".scale-100", new SKSize(310, 150)),
227
new
DpiPath
(OutputPath, 1.25m, "WideTile", ".scale-125", new SKSize(310, 150)),
228
new
DpiPath
(OutputPath, 1.50m, "WideTile", ".scale-150", new SKSize(310, 150)),
229
new
DpiPath
(OutputPath, 2.00m, "WideTile", ".scale-200", new SKSize(310, 150)),
230
new
DpiPath
(OutputPath, 4.00m, "WideTile", ".scale-400", new SKSize(310, 150)),
237
new
DpiPath
(OutputPath, 1.00m, "LargeTile", ".scale-100", new SKSize(310, 310)),
238
new
DpiPath
(OutputPath, 1.25m, "LargeTile", ".scale-125", new SKSize(310, 310)),
239
new
DpiPath
(OutputPath, 1.50m, "LargeTile", ".scale-150", new SKSize(310, 310)),
240
new
DpiPath
(OutputPath, 2.00m, "LargeTile", ".scale-200", new SKSize(310, 310)),
241
new
DpiPath
(OutputPath, 4.00m, "LargeTile", ".scale-400", new SKSize(310, 310)),
248
new
DpiPath
(OutputPath, 1.00m, "Badge", ".scale-100", new SKSize(24, 24)),
249
new
DpiPath
(OutputPath, 1.25m, "Badge", ".scale-125", new SKSize(24, 24)),
250
new
DpiPath
(OutputPath, 1.50m, "Badge", ".scale-150", new SKSize(24, 24)),
251
new
DpiPath
(OutputPath, 2.00m, "Badge", ".scale-200", new SKSize(24, 24)),
252
new
DpiPath
(OutputPath, 4.00m, "Badge", ".scale-400", new SKSize(24, 24)),
269
new
DpiPath
("", 4.0m);
274
new
DpiPath
("", 4.0m),
280
new
DpiPath
("", 4.0m),
287
public static DpiPath Original => new
DpiPath
("res", 1.0m);
292
new
DpiPath
("res/contents/default_All-LDPI", 0.8m),
293
new
DpiPath
("res/contents/default_All-MDPI", 1.0m),
294
new
DpiPath
("res/contents/default_All-HDPI", 1.5m),
295
new
DpiPath
("res/contents/default_All-XHDPI", 2.0m),
296
new
DpiPath
("res/contents/default_All-XXHDPI", 3.0m),
302
new
DpiPath
("shared/res/hdpi", 1.0m, null, ".high", new SKSize(78, 78)),
303
new
DpiPath
("shared/res/xhdpi", 1.0m, null, ".xhigh", new SKSize(117, 117)),
309
new
DpiPath
("res/contents/default_All-MDPI", 1.0m),
310
new
DpiPath
("res/contents/default_All-HDPI", 1.5m),
WindowsIconGenerator.cs (1)
37
var dpi = new
DpiPath
(fileName, 1.0m, size: new SKSize(64, 64));
108 references to DpiPath
Microsoft.Maui.Resizetizer (108)
AndroidAdaptiveIconGenerator.cs (4)
64
foreach (
var
dpi in
DpiPath
.Android.AppIconParts)
108
foreach (
var
dpi in
DpiPath
.Android.AppIconParts)
AppleIconAssetsGenerator.cs (4)
10
public AppleIconAssetsGenerator(ResizeImageInfo info, string appIconName, string intermediateOutputPath,
DpiPath
[] dpis, ILogger logger)
21
public
DpiPath
[] Dpis { get; }
29
var outputAppIconSetDir = Path.Combine(IntermediateOutputPath,
DpiPath
.Ios.AppIconPath.Replace("{name}", AppIconName));
52
foreach (
var
dpi in Dpis)
DpiPath.cs (45)
48
public static
DpiPath
Original =>
51
public static
DpiPath
[] Image
61
public static
DpiPath
[] AppIcon
78
public static
DpiPath
[] AppIconParts
93
public static
DpiPath
Original =>
96
public static
DpiPath
[] Image
104
public static
DpiPath
[] AppIcon
136
public static
DpiPath
Original =>
139
public static
DpiPath
[] Image
149
public static
DpiPath
[] SplashScreen
160
public static
DpiPath
[] Logo
190
public static
DpiPath
[] StoreLogo
201
public static
DpiPath
[] SmallTile
212
public static
DpiPath
[] MediumTile
223
public static
DpiPath
[] WideTile
234
public static
DpiPath
[] LargeTile
245
public static
DpiPath
[] Badge
257
public static
DpiPath
[] AppIcon =>
268
public static
DpiPath
Original =>
271
public static
DpiPath
[] Image
277
public static
DpiPath
[] AppIcon
287
public static
DpiPath
Original => new DpiPath("res", 1.0m);
289
public static
DpiPath
[] Image
299
public static
DpiPath
[] AppIcon
306
public static
DpiPath
[] SplashScreen
315
public static
DpiPath
GetOriginal(string platform)
320
return
DpiPath
.Ios.Original;
322
return
DpiPath
.Android.Original;
324
return
DpiPath
.Windows.Original;
326
return
DpiPath
.Wpf.Original;
328
return
DpiPath
.Tizen.Original;
334
public static
DpiPath
[] GetDpis(string platform)
339
return
DpiPath
.Ios.Image;
341
return
DpiPath
.Android.Image;
343
return
DpiPath
.Windows.Image;
345
return
DpiPath
.Wpf.Image;
347
return
DpiPath
.Tizen.Image;
353
public static
DpiPath
[] GetAppIconDpis(string platform, string appIconName)
355
DpiPath
[] result = null;
360
result =
DpiPath
.Ios.AppIcon;
363
result =
DpiPath
.Android.AppIcon;
366
result =
DpiPath
.Windows.AppIcon;
369
result =
DpiPath
.Wpf.AppIcon;
372
result =
DpiPath
.Tizen.AppIcon;
376
foreach (
var
r in result)
GeneratePackageAppxManifest.cs (14)
148
var
dpi =
DpiPath
.Windows.StoreLogo[0];
231
var
dpi =
DpiPath
.Windows.MediumTile[0];
243
var
dpi =
DpiPath
.Windows.Logo[0];
267
var
dpi =
DpiPath
.Windows.WideTile[0];
279
var
dpi =
DpiPath
.Windows.SmallTile[0];
291
var
dpi =
DpiPath
.Windows.LargeTile[0];
341
var
dpi =
DpiPath
.Windows.SplashScreen[0];
GenerateSplashAndroidResources.cs (4)
69
foreach (
var
dpi in
DpiPath
.Android.Image)
77
var
dpi =
DpiPath
.Android.Original;
GenerateSplashAssets.cs (2)
31
foreach (
var
dpi in
DpiPath
.Windows.SplashScreen)
GenerateSplashStoryboard.cs (7)
60
foreach (
var
dpi in
DpiPath
.Ios.Image)
68
var
dpi =
DpiPath
.Ios.Original;
82
DpiPath
dpi;
84
dpi =
DpiPath
.Ios.Image[0];
86
dpi =
DpiPath
.Ios.Original;
GenerateTizenManifest.cs (2)
147
var
defaultDpi =
DpiPath
.Tizen.AppIcon.Where(n => n.Path.EndsWith(IconDefaultDpiType)).FirstOrDefault();
ResizedImageInfo.cs (1)
6
public
DpiPath
Dpi { get; set; }
Resizer.cs (7)
30
public string GetRasterFileDestination(
DpiPath
dpi, bool includeIntermediate = true, bool includeScale = true)
33
public string GetFileDestination(
DpiPath
dpi, bool includeIntermediate = true, bool includeScale = true)
36
public static string GetRasterFileDestination(ResizeImageInfo info,
DpiPath
dpi, string intermediateOutputPath = default, bool includeScale = true)
46
public static string GetFileDestination(ResizeImageInfo info,
DpiPath
dpi, string intermediateOutputPath = default, bool includeScale = true)
63
public ResizedImageInfo CopyFile(
DpiPath
dpi, string inputsFile)
95
public ResizedImageInfo Resize(
DpiPath
dpi, string inputsFile)
113
void Rasterize(
DpiPath
dpi, string destination) =>
ResizetizeImages.cs (8)
42
var dpis =
DpiPath
.GetDpis(PlatformType);
47
var
originalScaleDpi =
DpiPath
.GetOriginal(PlatformType);
169
var appIconDpis =
DpiPath
.GetAppIconDpis(PlatformType, appIconName);
212
foreach (
var
dpi in appIconDpis)
236
void ProcessImageResize(ResizeImageInfo img,
DpiPath
[] dpis, ConcurrentBag<ResizedImageInfo> resizedImages)
240
foreach (
var
dpi in dpis)
251
void ProcessImageCopy(ResizeImageInfo img,
DpiPath
originalScaleDpi, ConcurrentBag<ResizedImageInfo> resizedImages)
SkiaSharpAppIconTools.cs (3)
38
public ResizedImageInfo Resize(
DpiPath
dpi, string destination, Func<Stream>? getStream = null)
80
void Draw(SKBitmap tempBitmap,
DpiPath
dpi, SKSize unscaledCanvasSize)
152
static SKPath? GetClipPath(
DpiPath
dpi, SKSize canvasSize, SKSize unscaledCanvasSize)
SkiaSharpTools.cs (3)
103
public void Resize(
DpiPath
dpi, string destination, double additionalScale = 1.0, bool dpiSizeIsAbsolute = false)
123
public static (SKSizeI Scaled, SKSize Unscaled) GetCanvasSize(
DpiPath
dpi, SKSize? baseSize = null, SkiaSharpTools baseTools = null)
231
public (SKSizeI, float) GetScaledSize(SKSize originalSize,
DpiPath
dpi, SKSize? absoluteSize = null) =>
TizenResourceXmlGenerator.cs (1)
87
return new ResizedImageInfo() { Dpi =
DpiPath
.Tizen.Original, Filename = destination };
TizenSplashUpdater.cs (2)
39
foreach (
var
dpi in
DpiPath
.Tizen.SplashScreen)
WindowsIconGenerator.cs (1)
37
var
dpi = new DpiPath(fileName, 1.0m, size: new SKSize(64, 64));