【问题标题】:Direct2D overwrite on existing contentDirect2D 覆盖现有内容
【发布时间】:2014-09-09 15:23:42
【问题描述】:

我正在使用 Direct2D 开发“绘制 XY”(如在 MatLAB 中),我的要求是,在模拟期间(大约需要 5 到 10 分钟),我需要在固定的 X 轴上绘制 Y 值。由于 X 轴没有改变,我需要在固定的 X 轴上绘制新的 Y 值而不删除屏幕上的旧 Y 值(位图左右)。

Direct2D 的问题是,每次
在画一个点之前,我需要

pRenderTarget->BeginDraw();

和 绘制点后,我需要

hr = pRenderTarget->EndDraw();

因此,我正在失去旧的价值观。任何建议如何处理这种情况?

【问题讨论】:

    标签: c++ graphics plot render direct2d


    【解决方案1】:

    我不知道如何结束这个问题,因为可以在这里找到答案: Direct2D - preserve the existing content and overwrite the new values

    【讨论】:

      猜你喜欢
      • 2014-09-11
      • 1970-01-01
      • 2018-06-27
      • 2021-09-18
      • 1970-01-01
      • 1970-01-01
      • 2012-05-30
      • 2018-03-30
      • 2014-04-27
      相关资源
      最近更新 更多