Write a NumPy program to create a white image of size 512x256
- برمجة بايثون
- 2021-09-13
- mhanasmh00489829403
الأجوبة
from PIL import Image
import numpy as np
a = np.full((512, 256, 3), 255, dtype=np.uint8)
image = Image.fromarray(a, "RGB")
image.save("white.png", "PNG")
Sample Output:

أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال