Convert RGB Images to Grayscale Using VB NET Programming

in #programming8 years ago (edited)

Hello steemians friend, i will share the tutorial create a simple Application using vb net language. hopefully this post can add science pemograman for us all, this post is very suitable for beginners.



Grayscale Image


Grayscale image is a digital image that has only one channel value on each pixel, meaning the value Red = Green = Blue. This value is used to show the intensity of the color.

The images shown in this type of image are made up of gray, varying in black at the weakest intensity and white in the strongest intensity. The grayscale image is different from the "black-and-white" image, which, in computer context, is a black-and-white image consisting of only two colors: "black" and "white" only. In the grayscale image the color varies between black and white, but the color variations are numerous.

Grayscale images are stored in 8 bit format for each pixel sample, thus allowing 256 intensities. To change the colored image having the matrix values ​​of each R, G and B be grayscale images with X value, then the conversion can be done by taking the mean values ​​of R, G and B so that it can be written to:

X = (R + G + B) / 3
Color = RGB (X, X, X)


WORK STEPS :

• Open the Microsoft Visual Basic 2010 program and select FILE and then the new project


• After displaying a new project, select Windows Froms Application
• By naming the program And then click OK when finished


• Then design the shape as shown below


• After designing such a program and entering the following program code:

Source code:


PROGRAM RESULTS:


FOLLOW ME @muchsin


Sort:  

hai Hi! I am pura pura robot. I just upvoted you! I found similar content that readers might be interested

hai Hi! I am pura pura robot. I just upvoted you! I found similar content that readers might be interested www.hihi.c.om

Hi! I pretended to be a robot
I just upvoted you! I find unlike content that readers might find interested in:
WWW.hihihi.com
do not forget to add jav behind hihi

good post bro...

Coin Marketplace

STEEM 0.14
TRX 0.34
JST 0.033
BTC 116742.20
ETH 4622.87
SBD 0.87