
This means we will need only 8 bits to store the value of any of the four component.


So, 8 bits can represent any value in the range 0 to 255. We generally denote these four components as A for Alpha, R for Red, G for Green and B for Blue.Įach of these four components (ARGB) take a value between 0 to 255 both inclusive, where 0 means the component is missing and 255 means the component is fully present. The smallest unit of an image is called a Pixel, and it is generally made up of 4 components namely:Īlpha determines the transparency while Red, Green and Blue determines the color of the pixel. How to get pixel values of an image and how to set pixel value of an image in Java programming language.

We will learn how to store pixel value in a variable. In this theory part of the Image Processing Project we will learn about pixels.
