我有一个想要使用Direct2D渲染到屏幕上的像素数组(m_pixels)。该数组包含10,000个元素(100行,共100个像素)。下面的代码循环像素,并将它们绘制为10x10的矩形。有没有更有效的方法来执行这个操作?如何为像素/图像添加GaussianBlur效果?m_d2dContext->Clear(ColorF(0.0f, 0.0f, 0.0f));
// m_pixels is updated by the solver directly before render
au
Drawing onto the TForm.Canvas gives the correct result现在,我了解了ID2D1Bitmap和IWICBitmapAEventArgs.Canvas.CreateBitmap(bmp);
AEventArgs.Canvas.RenderTarget.DrawBitmapthe PixelFormat from th