@@ -126,9 +126,20 @@ private sealed record Configuration : IQuantizerSettings, IDithererSettings // a
126
126
127
127
private static readonly HashSet < string > affectsDisplayImage = new ( )
128
128
{
129
- nameof ( ShowOverlay ) , nameof ( OverlayShape ) , nameof ( OutlineWidth ) , nameof ( OutlineColor ) , nameof ( UseLinearColorSpace ) ,
130
- nameof ( UseQuantizer ) , nameof ( SelectedQuantizer ) , nameof ( BackColor ) , nameof ( AlphaThreshold ) , nameof ( WhiteThreshold ) ,
131
- nameof ( PaletteSize ) , nameof ( UseDithering ) , nameof ( SelectedDitherer ) } ;
129
+ nameof ( ShowOverlay ) ,
130
+ nameof ( OverlayShape ) ,
131
+ nameof ( OutlineWidth ) ,
132
+ nameof ( OutlineColor ) ,
133
+ nameof ( UseLinearColorSpace ) ,
134
+ nameof ( UseQuantizer ) ,
135
+ nameof ( SelectedQuantizer ) ,
136
+ nameof ( BackColor ) ,
137
+ nameof ( AlphaThreshold ) ,
138
+ nameof ( WhiteThreshold ) ,
139
+ nameof ( PaletteSize ) ,
140
+ nameof ( UseDithering ) ,
141
+ nameof ( SelectedDitherer )
142
+ } ;
132
143
133
144
#endregion
134
145
@@ -233,7 +244,7 @@ protected override async void OnPropertyChanged(PropertyChangedExtendedEventArgs
233
244
await GenerateDisplayImage ( Configuration . Capture ( this ) ) ;
234
245
}
235
246
236
- [ SuppressMessage ( "ReSharper" , "AsyncVoidMethod" , Justification = "Dispose pattern. " ) ]
247
+ [ SuppressMessage ( "ReSharper" , "AsyncVoidMethod" , Justification = "Dispose pattern" ) ]
237
248
protected override async void Dispose ( bool disposing )
238
249
{
239
250
if ( IsDisposed )
@@ -263,7 +274,7 @@ private async Task GenerateDisplayImage(Configuration cfg)
263
274
baseImage ??= SKBitmap . Decode ( Images . Information256 ) ;
264
275
265
276
// The awaits make this method reentrant, and a continuation can be spawn after any await at any time.
266
- // Therefore it is possible that despite of clearing generatePreviewTask in WaitForPendingGenerate it is not null upon starting the continuation.
277
+ // Therefore, it is possible that despite of clearing generatePreviewTask in WaitForPendingGenerate it is not null upon starting the continuation.
267
278
while ( generateResultTask != null )
268
279
{
269
280
CancelRunningGenerate ( ) ;
@@ -295,7 +306,7 @@ private async Task GenerateDisplayImage(Configuration cfg)
295
306
var asyncConfig = new TaskConfig { CancellationToken = token , ThrowIfCanceled = false } ;
296
307
297
308
// NOTE: This GetReadableBitmapData is a local implementation using purely the KGySoft.Drawing.Core package.
298
- // For complete SkiaSharp support with all possible pixel formats the example at https://github.com/koszeggy/KGySoft.Drawing/tree/master/Examples/SkiaSharp_( Maui)
309
+ // For complete SkiaSharp support with all possible pixel formats the example at https://github.com/koszeggy/KGySoft.Drawing/tree/master/Examples/SkiaSharp. Maui
299
310
using IReadableBitmapData baseImageBitmapData = baseImage . GetReadableBitmapData ( workingColorSpace ) ;
300
311
301
312
// ===== a.) No overlay: just creating a clone bitmap with the specified quantizer/ditherer =====
0 commit comments