public void WriteFrame(SpanBitmap bmp) { _Cache.AsTypeless().SetPixels(0, 0, bmp); if (_Cache.TryGetBuffer(out var segment)) { _Writer.WriteFrame(true, segment.Array, segment.Offset, segment.Count); } }
public void WriteFrame(SpanBitmap bmp) { _Cache.AsTypeless().SetPixels(0, 0, bmp); if (_Cache.TryGetBuffer(out var segment)) { _Writer.WriteFrame(true, segment.Array, segment.Offset, segment.Count); } }