In computer graphics, arrays can be used to store pixel values for images. Which typeकंप्यूटर ग्राफिक्स में, सरणियों का उपयोग छवियों के लिए पिक्सेल मानों को संग्रहीत करने के लिए किया
In computer graphics, arrays can be used to store pixel values for images. Which type
of array would be suitable for this purpose?
कंप्यूटर ग्राफिक्स में, सरणियों का उपयोग छवियों के लिए पिक्सेल मानों को संग्रहीत करने के लिए किया
जा सकता है। इस उद्देश्य के लिए किस प्रकार का सरणी उपयुक्त होगी?
Show answerHide answer
Correct answer: (B) 2-D array2-डी सरणी
Explanation
An image is a grid of pixels in rows and columns, so a 2-D array (pixel[row][column]) maps onto it naturally.इमेज पंक्तियों और स्तंभों में पिक्सेल का ग्रिड है, इसलिए 2-D array (pixel[row][column]) उस पर स्वाभाविक रूप से बैठता है।