如何在pictureBox中添加多张图片、、
就像~~~~扑克牌游戏~~~~
点一下按钮在pictureBox中显示一张图片(即一张牌)、、并且图片实现层叠效果、、
就像这样:
怎么做呢?
用Graphic.DrawImage() 函数么?具体点好么?最好上代码、、
就像~~~~扑克牌游戏~~~~
点一下按钮在pictureBox中显示一张图片(即一张牌)、、并且图片实现层叠效果、、
就像这样:
怎么做呢?
用Graphic.DrawImage() 函数么?具体点好么?最好上代码、、
{
e.Graphices.DrawImage(image1,x,y); // x,y控制绘图的位置
e.Graphices.DrawImage(image2,x,y);
e.Graphices.DrawImage(image3,x,y);
e.Graphices.DrawImage(image4,x,y); //image1\2\3\4 分别为纸牌图片
}以上可以动态改变Image参数 实现蜘蛛纸牌中效果