spongebobyey 发表于 2019-10-10 18:21:17

画直线

使用SetPixel画点传送门:https://fishc.com.cn/forum.php?mod=viewthread&tid=52806&extra=page%3D2%26filter%3Dtypeid%26typeid%3D420
SetPixel(1,2,3);
    1.设备环境句柄即HDC
    2.逻辑坐标
    3.逻辑坐标
    4.RGB(1,2,3)RGB用法   传送门 :https://fishc.com.cn/forum.php?mod=viewthread&tid=52803&extra=page%3D2%26filter%3Dtypeid%26typeid%3D420
SetPixelV函数   返回值为bool类型传送门:https://fishc.com.cn/forum.php?mod=viewthread&tid=52810&extra=page%3D2%26filter%3Dtypeid%26typeid%3D420


线段的画法:
MoveToEx(1,2,3,4)      传送门:https://fishc.com.cn/forum.php?mod=viewthread&tid=53053&extra=page%3D2%26filter%3Dtypeid%26typeid%3D420
   1.设备环境句柄一般是hdc;
   2.逻辑坐标值
   3.逻辑坐标值
   4.原来的点信息
MoveToEx(hdc,100,100,NULL);
LineTo(hdc,600,100);
未指定起点默认以(0,0)为起点
GetCurrentPositionEx()传送门:https://fishc.com.cn/forum.php?mod=viewthread&tid=53110&extra=page%3D3%26filter%3Dtypeid%26typeid%3D420
页: [1]
查看完整版本: 画直线