Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


RGB value


RGB value

Author
Message
Keithuk
Keithuk
Forum God
Forum God (153K reputation)

Group: Moderators
Posts: 1.9K, Visits: 5.5K
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 PSCWink

Keith

I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

vb5prgrmr
vb5prgrmr
Forum God
Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)

Group: Forum Members
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

Yingchun
Yingchun
Forum God
Forum God (440 reputation)Forum God (440 reputation)Forum God (440 reputation)Forum God (440 reputation)Forum God (440 reputation)Forum God (440 reputation)Forum God (440 reputation)Forum God (440 reputation)Forum God (440 reputation)

Group: Forum Members
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?


Edited
8/23/2011 by Keithuk
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search