winform---询问
俄罗斯方块的数据怎么交互数据库,俄罗斯方块怎么调整画布到自己想要的区域?谢谢。
........没明白,画布相关的要学学GUI+ 谢谢了 public void DrawPoint(Graphics AGraphics, Point APoint, byte ABrick)
{
if (ImageList == null) return;
if (ImageList.Images.Count <= 0) return;
if (APoint.X < 0 || APoint.X >= colCount) return;
if (APoint.Y < 0 || APoint.Y >= rowCount) return;
Rectangle vRectangle = new Rectangle(
APoint.X * brickWidth, APoint.Y * brickHeight,
brickWidth, brickHeight);
AGraphics.FillRectangle(new SolidBrush(BackColor), vRectangle);
if (ABrick <= 0) return;
ABrick = (byte)((ABrick - 1) % ImageList.Images.Count);
Image vImage = ImageList.Images;
AGraphics.DrawImage(vImage, vRectangle.Location);
} 谢谢了,怎么调整画布位置 试着调一下 APoint 这个参数值 谢谢
页:
[1]