|
-
Nov 6th, 2001, 07:34 AM
#1
Thread Starter
Addicted Member
RGB question
Hi guys
Well I need to find out the darkness or brightness of each single pixle of a given image file in my app. To do this I use a picturebox, I load the image into it then I get each pixel’s color using point method. It returns a long RGB number which is the result of merging red, green and blue I guess. 4 example if the point is RGB(192,255,12) it returns 192255012. but there is one problem:
When it is RGB(0,255,0)(pure green) it returns 225
When it is RGB(0,0,255) (pure blue) it returns 225 also
So u see there’s no difference in green and blue using this. So I decided to anlaize these rgb colors. For example I have a point now I want to find out how much red is in it? How much green and how much blue? Do u know how to this?
Thanks aloot
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|