Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Jun 29, 2020, 1:09 AM EDT
Harsh ShahRank #1,322 · 1.3K reputationPosted Jul 1, 2020, 6:48 PM EDT
You need to define write_pixel(pixel,file_handle)
For a grey image pixel is just an integer. Here is a crude implementation: