Skip to content

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy