﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>A1VBCode Forums / Classic Visual Basic (VB 6 or earlier) / API  / RGB value / Latest Posts</title><generator>InstantForum.NET v4.1.1</generator><description>A1VBCode Forums</description><link>http://www.a1vbcode.com/vbforums/</link><webMaster>forums@a1vbcode.com</webMaster><lastBuildDate>Thu, 09 Sep 2010 16:18:28 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: RGB value</title><link>http://www.a1vbcode.com/vbforums/Topic25911-5-1.aspx</link><description>&lt;pre&gt;&lt;/P&gt;&lt;P&gt;Dim PathTOPic As String&lt;BR&gt;Dim MyColor As Long, R As Integer, G As Integer, B As Integer, Temp As Long&lt;/P&gt;&lt;P&gt;Me.Visible = True&lt;BR&gt;DoEvents&lt;BR&gt;PathTOPic = "C:\z\pb\1.jpg"&lt;BR&gt;Picture1.Picture = LoadPicture(PathTOPic)&lt;BR&gt;Picture1.AutoRedraw = True&lt;BR&gt;MyColor = Picture1.Point(10, 10)&lt;BR&gt;Debug.Print MyColor&lt;BR&gt;Temp = MyColor Mod 65536&lt;BR&gt;MyColor = MyColor - Temp&lt;BR&gt;B = MyColor / 65536&lt;BR&gt;MyColor = Temp&lt;BR&gt;Temp = MyColor Mod 256&lt;BR&gt;MyColor = MyColor - Temp&lt;BR&gt;G = MyColor / 256&lt;BR&gt;R = Temp&lt;BR&gt;Debug.Print R, G, B&lt;BR&gt;Debug.Print RGB(R, G, B)&lt;BR&gt;&lt;/pre&gt;&lt;/P&gt;&lt;P&gt;However you will have to change the PathTOPic to your path to a picture.&lt;/P&gt;&lt;P&gt;Good Luck</description><pubDate>Fri, 24 Apr 2009 19:55:34 GMT</pubDate><dc:creator>vb5prgrmr</dc:creator></item><item><title>RE: RGB value</title><link>http://www.a1vbcode.com/vbforums/Topic25911-5-1.aspx</link><description>&lt;div class="Quote"&gt;&lt;b&gt;Takeshi (10/8/2008)&lt;/b&gt;&lt;hr noshade size="1" class="hr"&gt; Could you tell me which thread link on vbforums that same with my problem ?&lt;/div&gt;&lt;/P&gt;&lt;P&gt;I just did a quick search for &lt;STRONG&gt;picture color getpixel&lt;/STRONG&gt; because getpixel is the API call. It came back with 57 topics. &lt;STRONG&gt;Image&lt;/STRONG&gt; &lt;STRONG&gt;color getpixel&lt;/STRONG&gt; came back with 41. &lt;/P&gt;&lt;P&gt;I would also recommend you do a search on &lt;a href="http://www.planet-source-code.com/vb/default.asp?lngWId=1" target="_blank" class="SmlLinks"&gt;PSC&lt;/a&gt;.  &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Wink.gif" border="0" title="Wink"&gt;</description><pubDate>Wed, 08 Oct 2008 16:11:48 GMT</pubDate><dc:creator>Keithuk</dc:creator></item><item><title>RE: RGB value</title><link>http://www.a1vbcode.com/vbforums/Topic25911-5-1.aspx</link><description>I'm sorry, i'm not increase it. I just not tell completely and specifics. &lt;P&gt;I search on vbforums, but i can't found any thread that same or similar with my problem. Could you tell me which thread link on vbforums that same with my problem ?&lt;/P&gt;&lt;P&gt;Please, help me... &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Crying.gif" border="0" title="Crying"&gt; THanks. GBU.</description><pubDate>Wed, 08 Oct 2008 15:10:06 GMT</pubDate><dc:creator>Takeshi</dc:creator></item><item><title>RE: RGB value</title><link>http://www.a1vbcode.com/vbforums/Topic25911-5-1.aspx</link><description>&lt;div class="Quote"&gt;&lt;b&gt;Keithuk (10/8/2008)&lt;/b&gt;&lt;hr noshade size="1" class="hr"&gt;&lt;div class="Quote"&gt;&lt;b&gt;Takeshi (10/7/2008)&lt;/b&gt;&lt;hr noshade size="1" class="hr"&gt;Thanks. Yeah, about in andeavb forum. 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 ?? &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Satisfied.gif" border="0" title="Satisfied"&gt;&lt;P&gt;So, i means, the user just click the command button to open the open dialog command, choose an image file or folder contains image files, then application put the choosen file or folder to a list view. Then application can process all files in list view all at once.&lt;/P&gt;&lt;P&gt;Or, maybe you have some ideas or trick for me to solve my problem. Thank u so much. GBU. &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Smile.gif" border="0" title="Smile"&gt;&lt;/div&gt;&lt;P&gt;Now your increasing your intial statement with multiple images. I haven't had a chance to check my records yet. This question as been asked before do a search on &lt;a href="http://www.vbforums.com/" target="_blank" class="SmlLinks"&gt;VBforums&lt;/a&gt;.&lt;P&gt;Watch your double posts Takeshi. &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Wink.gif" border="0" title="Wink"&gt;&lt;/div&gt;</description><pubDate>Wed, 08 Oct 2008 07:25:00 GMT</pubDate><dc:creator>Keithuk</dc:creator></item><item><title>RE: RGB value</title><link>http://www.a1vbcode.com/vbforums/Topic25911-5-1.aspx</link><description>&lt;div class="Quote"&gt;&lt;b&gt;Takeshi (10/7/2008)&lt;/b&gt;&lt;hr noshade size="1" class="hr"&gt;Thanks. Yeah, about in andeavb forum. 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 ?? &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Satisfied.gif" border="0" title="Satisfied"&gt;&lt;P&gt;So, i means, the user just click the command button to open the open dialog command, choose an image file or folder contains image files, then application put the choosen file or folder to a list view. Then application can process all files in list view all at once.&lt;/P&gt;&lt;P&gt;Or, maybe you have some ideas or trick for me to solve my problem. Thank u so much. GBU. &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Smile.gif" border="0" title="Smile"&gt;&lt;/div&gt;&lt;P&gt;Now your increasing your intial statement with multiple images. I haven't had a chance to check my records yet. This question as been asked before do a search on &lt;a href="http://www.vbforums.com/" target="_blank" class="SmlLinks"&gt;VBforums&lt;/a&gt;.&lt;P&gt;Watch you double posts Takeshi. &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Wink.gif" border="0" title="Wink"&gt;</description><pubDate>Wed, 08 Oct 2008 07:23:54 GMT</pubDate><dc:creator>Keithuk</dc:creator></item><item><title>RE: RGB value</title><link>http://www.a1vbcode.com/vbforums/Topic25911-5-1.aspx</link><description>Thanks. Yeah, about in andeavb forum. 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 ?? &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Satisfied.gif" border="0" title="Satisfied"&gt;&lt;P&gt;So, i means, the user just click the command button to open the open dialog command, choose an image file or folder contains image files, then application put the choosen file or folder to a list view. Then application can process all files in list view all at once.&lt;/P&gt;&lt;P&gt;Or, maybe you have some ideas or trick for me to solve my problem. Thank u so much. GBU. &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Smile.gif" border="0" title="Smile"&gt;</description><pubDate>Tue, 07 Oct 2008 15:12:13 GMT</pubDate><dc:creator>Takeshi</dc:creator></item><item><title>RE: RGB value</title><link>http://www.a1vbcode.com/vbforums/Topic25911-5-1.aspx</link><description>Thanks. Yeah, about in andeavb forum. 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 ??&lt;/P&gt;&lt;P&gt;So, i means, the user just click the command button to open the open dialog command, choose an image file or folder contains image files, then application put the choosen file or folder to a list view. Then application can process all files in list view all at once.&lt;/P&gt;&lt;P&gt;Or, maybe you have some ideas or trick for me to solve my problem. Thank u so much. GBU.</description><pubDate>Tue, 07 Oct 2008 15:10:14 GMT</pubDate><dc:creator>Takeshi</dc:creator></item><item><title>RE: RGB value</title><link>http://www.a1vbcode.com/vbforums/Topic25911-5-1.aspx</link><description>&lt;div class="Quote"&gt;&lt;b&gt;Takeshi (10/7/2008)&lt;/b&gt;&lt;hr noshade size="1" class="hr"&gt;I don't know.. But if it load to my image box, like you say, would you still teach me how get the rgb values ? I'm really beginner in VB's language. :p Thanks b4.&lt;/div&gt;&lt;/P&gt;&lt;P&gt;So you have sorted loading your image then? You didn't in your first post. I've just read your post in AndreaVB and you don't mension about unable to load the image.&lt;/P&gt;&lt;P&gt;I don't have VB at work so I will have to do a few checks when I get home. There are API calls &lt;STRONG&gt;GetPixel&lt;/STRONG&gt; and others I think for getting the colour at the mouse position. &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Wink.gif" border="0" title="Wink"&gt;</description><pubDate>Tue, 07 Oct 2008 13:25:14 GMT</pubDate><dc:creator>Keithuk</dc:creator></item><item><title>RE: RGB value</title><link>http://www.a1vbcode.com/vbforums/Topic25911-5-1.aspx</link><description>I don't know.. But if it load to my image box, like you say, would you still teach me how get the rgb values ? I'm really beginner in VB's language. :p Thanks b4.</description><pubDate>Tue, 07 Oct 2008 12:38:29 GMT</pubDate><dc:creator>Takeshi</dc:creator></item><item><title>RE: RGB value</title><link>http://www.a1vbcode.com/vbforums/Topic25911-5-1.aspx</link><description>I don't know.. But if it load to my image box, like you say, would you still teach me how get the rgb values ? I'm really beginner in VB's language. :p Thanks b4.</description><pubDate>Tue, 07 Oct 2008 12:34:16 GMT</pubDate><dc:creator>Takeshi</dc:creator></item><item><title>RE: RGB value</title><link>http://www.a1vbcode.com/vbforums/Topic25911-5-1.aspx</link><description>I don't know.. But if it load to my image box, like you say, would you still teach me how get the rgb values ? I'm really beginner in VB's language. :p Thanks b4.</description><pubDate>Tue, 07 Oct 2008 12:32:13 GMT</pubDate><dc:creator>Takeshi</dc:creator></item><item><title>RE: RGB value</title><link>http://www.a1vbcode.com/vbforums/Topic25911-5-1.aspx</link><description>Welcome to A1vbcode &lt;STRONG&gt;Takeshi&lt;/STRONG&gt;.  &lt;IMG src="http://www.a1vbcode.com/vbforums/Uploads/Images/d3009976-ef0b-4f03-958e-1785.gif"&gt;&lt;/P&gt;&lt;P&gt;&lt;div class="Quote"&gt;&lt;b&gt;Takeshi (10/6/2008)&lt;/b&gt;&lt;hr noshade size="1" class="hr"&gt;But, that image file not open or show in my form, just get the RGB values. &lt;/div&gt;&lt;/P&gt;&lt;P&gt;But if you can't load the image into a PictureBox or ImageBox how are you going to do this?&lt;/P&gt;&lt;P&gt;Why won't it load? What code are you using? &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Wink.gif" border="0" title="Wink"&gt;&lt;/P&gt;&lt;P&gt;Picture1.Picture = LoadPicture(App.Path &amp;amp; "\your.jpg")</description><pubDate>Mon, 06 Oct 2008 17:07:44 GMT</pubDate><dc:creator>Keithuk</dc:creator></item><item><title>RGB value</title><link>http://www.a1vbcode.com/vbforums/Topic25911-5-1.aspx</link><description>Hi ! I'm a new member in this forum. Could any one help me, how to get RGB values at every pixel from a image file ? But, that image file not open or show in my form, just get the RGB values. Then, i can change that RGB values and create a new image file. Honestly, i'm working an image encryption. Please, help me....  it's confused me so much. Thanks. GBU &lt;/P&gt;&lt;P&gt;NB : I'm sorry if my English is bad &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Smile.gif" border="0" title="Smile"&gt;</description><pubDate>Mon, 06 Oct 2008 15:45:49 GMT</pubDate><dc:creator>Takeshi</dc:creator></item></channel></rss>