Is there any way to get a RGB color of a pixel from the image gif/jpg/png? I tried to use getpixel() for this purpose, but for some reasons my code doesn't work. Thank you for your help in advance!
Is there any way to get a RGB color of a pixel from the image gif/jpg/png? I tried to use getpixel() for this purpose, but for some reasons my code doesn't work. Thank you for your help in advance!
Try out the function offered on this page:
https://sim0n.wordpress.com/2009/03/...-pixel-colour/
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
Thank you JBeaucaire!
Do you know how I can load a gif/jpg/png image file from my hdd to lDC ?
Also when I compile this code on excel 2013 I get the following error: "user-defined type may not be passed ByVal"
Sorry to bring up an old thread, but I've just been playing with it myself and had the same problem yan1234 had.
I fixed this by changing "ByVal" to "ByRef" on the affected line.
Heres my current code;
Hope this helps anyone whos stumbled on this and struggled to make it work.Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks