gpt4 book ai didi

c# - 打印带有方形框的位图,这样

转载 作者:行者123 更新时间:2023-11-30 22:39:28 25 4
gpt4 key购买 nike

我想构建一个打印有 x 行和 y 列的位图,使得每个框的大小为 10 x 10 像素。

现在,当我经过时:

private void printBitmap(rows, columns, numOfWhites, numOfblack, numOf(green or brown)) {
// i want to be able to build a bitmap with rows and columns with White to top right,
// black to bottom right, if green or brown fill the box with green or brown
// except the area with white or black
// how do i do this in C# ?
}

最佳答案

我们不是来这里做你的工作的,所以这是一个给初学者的提示:

创建位图: http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.aspx

然后画线:

画线: http://msdn.microsoft.com/fr-fr/library/021a23yy.aspx

哇 super 难!! :D

关于c# - 打印带有方形框的位图,这样,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5691741/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com