Private width As Integer = 0
Private height As Integer = 0
Declare Function cdtInit Lib "cards.dll" (ByRef width As Integer, _
ByRef height As Integer) As Boolean
参数说明:width,height返回牌默认宽和高,单位为pixels。
Declare Function cdtDrawExt Lib "cards.dll" (ByVal hdc As IntPtr, _
ByVal x As Integer, ByVal y As Integer, ByVal dx As Integer, _
ByVal dy As Integer, ByVal card As Integer, _
ByVal mode As Integer, ByVal color As Long) As Boolean
参数说明:hdc(handle to a device context)句柄;
x,y指定牌左上角坐标位;
dx,dy指定牌宽和高;
card需要绘制的牌,0-51[A(草花、方块、红桃、黑桃),2,…,K];53-65牌背
面;
mode 指定绘制方式,牌面向上为0,牌面向下为1;
color 指定背景色。