public void Dispose() { _bitmap.NotifyPixelsChanged(); _parent.Version++; Monitor.Exit(_parent._lock); _bitmap = null; _parent = null; }
protected override void OnDrawSample(SKCanvas canvas, int width, int height) { canvas.Clear(SKColors.Black); var opts = new SKCodecOptions(currentFrame); if (codec?.GetPixels(info, bitmap.GetPixels(), opts) == SKCodecResult.Success) { bitmap.NotifyPixelsChanged(); canvas.DrawBitmap(bitmap, 0, 0); } }
/// <inheritdoc /> public void Dispose() { _bitmap.NotifyPixelsChanged(); _bitmap = null; }