Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 04b5028

Browse files
committed
全白
1 parent da748df commit 04b5028

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎ch04-图片/创建图片1.py renamed to ‎ch04-图片/创建黑白图片1.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
size = (2560, 1600)
1515
# 全黑.可以用在屏保
1616
black = np.zeros(size)
17+
print(black[34][56])
1718
cv2.imwrite('black.jpg',black)
1819

19-
#white
20+
#white 全白
2021
black[:]=255
22+
print(black[34][56])
2123
cv2.imwrite('white.jpg',black)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /