Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

Getting pixel color from bitmap with Ruby

For general discussion related FlowStone

Getting pixel color from bitmap with Ruby

Postby adamszabo » Fri May 14, 2021 5:04 pm

Hey Guys, I am wondering is there some hidden function that can get the color values of a pixel in a bitmap at a specific coordinate? There is the GetPixel primitive which can be used, but I hoped to use ruby for it. I was thinking something like @bitmap.getARGB(12,23) but that ofcourse didnt work :cry:
adamszabo
 
Posts: 630
Joined: Sun Jul 11, 2010 7:21 am

Re: Getting pixel color from bitmap with Ruby

Postby aronb » Fri May 14, 2021 5:39 pm

See this (my) post: http://www.dsprobotics.com/support/viewtopic.php?f=2&t=14697

Still no real way that I have found, but I am no RUBY expert, that's for sure :lol:

Trog has some REALLY good info in the post though! :ugeek:


Aron
User avatar
aronb
 
Posts: 153
Joined: Sun Apr 17, 2011 3:08 am
Location: Florida, USA


Return to General

Who is online

Users browsing this forum: No registered users and 25 guests