- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Text;
- using System.Windows.Forms;
- using System.Runtime.InteropServices;
- using System.Windows.Forms.Design;
- namespace GetCards
- {
- public partial class Form1 : Form
- {
- [DllImport("cards.dll")]
- public static extern bool cdtInit(ref int width, ref int height);
- [DllImport("cards.dll")]
- public static extern void cdtTerm();
- [DllImport("cards.dll")]
- public static extern bool cdtDraw(IntPtr hdc,int x,int y,int card,int mode,long color);
- //mode=0表正面,1表反面,Color我从0-0xFF000试了很多,好象没颜色改变
- //[DllImport("cards.dll")]
- //public static extern bool cdtDrawExt(IntPtr hdc,int x,int y,int dx,int dy,int card,int type,long color);
- &nb

最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



