说明:在 Firemonkey 在移动平台 Android & iOS 要直接在 Canvas 画出 1 点像素的线,似乎有点困难,不过利用一点小技巧,还是能达到这个要求的,首先要建立一个 Bitmap 并将大小乘以目前机子的 Scale ,再开始绘图即可。

源码下载:

https://github.com/OneChen/TestDraw1Pixel

效果:

[示例] Firemonkey 画出 1 点像素的线

参考:

http://sourceoddity.com/blog/2013/10/using-tcanvas-in-delphi-for-android/

相关文章:

  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-12-08
  • 2021-05-09
  • 2022-12-23
猜你喜欢
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
相关资源
相似解决方案