public Task<Bitmap> RenderAsync(ImageData data, CancellationToken cancellationToken) { return Task.Run(() => { var bmp = new Bitmap(data.Width, data.Height); for (int i = 0; i < data.Width; i++) { cancellationToken.ThrowIfCancellationRequested(); for (int j = 0; j < data.Height; j++) { } } return bmp; },cancellationToken);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)