| | | 
Forum God

Group: Moderators Last Login: 2 days ago @ 6:29:46 PM Posts: 1,889, Visits: 5,254 |
| Takeshi (10/8/2008) Could you tell me which thread link on vbforums that same with my problem ?I just did a quick search for picture color getpixel because getpixel is the API call. It came back with 57 topics. Image color getpixel came back with 41. I would also recommend you do a search on PSC. 
Keith
I've been programming with VB for 15 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning. |
| | | | Forum Guru
       
Group: Forum Members Last Login: 9/4/2010 3:34:47 PM Posts: 167, Visits: 786 |
| Dim PathTOPic As String Dim MyColor As Long, R As Integer, G As Integer, B As Integer, Temp As Long Me.Visible = True DoEvents PathTOPic = "C:\z\pb\1.jpg" Picture1.Picture = LoadPicture(PathTOPic) Picture1.AutoRedraw = True MyColor = Picture1.Point(10, 10) Debug.Print MyColor Temp = MyColor Mod 65536 MyColor = MyColor - Temp B = MyColor / 65536 MyColor = Temp Temp = MyColor Mod 256 MyColor = MyColor - Temp G = MyColor / 256 R = Temp Debug.Print R, G, B Debug.Print RGB(R, G, B)
However you will have to change the PathTOPic to your path to a picture. Good Luck |
| | | | Forum Newbie
       
Group: Forum Members Last Login: 8/23/2011 9:09:43 PM Posts: 2, Visits: 3 |
| | That is my first post about RGB values. But then i think, an encryption program maybe can to process an image folder not just an image file. It means can be process image file in a folder all at once. Maybe 2, 5, or 10 image file. So, how can i load image files all at once in my form to get the RGB ?? Edit: Keith Spam removed, watch it or you will be removed?
|
| |
|
|