Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些使用 c++ 的 CDC 绘制图像的代码。现在我正在尝试使用这些代码在 Java 画布中绘制图像。这真的可能还是不可能?我会等待你的答复。
我认为您不能像在 android 手机中那样使用 c++ 代码。因为android手机是基于linux的,而c++不是。所以不同系统之间,无法转换。
Canvas 完成了 java Graphics(2D) 或 Windows CDC 的角色。Canvas.setBitmap 似乎是输出图像的一个不错的猜测。