[Gambas-user] Reading RGB(A) values of screen pixels

Fabien Bodard gambas.fr at ...626...
Thu Nov 21 10:47:19 CET 2013


you need that :

http://gambasdoc.org/help/comp/gb.image/color/_get?v3

and that

http://gambasdoc.org/help/comp/gb.image/colorinfo?v3

and that too

http://gambasdoc.org/help/comp/gb.image/image/_get?v3



so

MyRedPartValue = Color[MyImage[10,10]].Red


2013/11/21 Shane <shanep1967 at ...169...>:
> Is this of any help
>
>
> On 21/11/13 09:01, ukimiku wrote:
>>
>> *Dear list members,*
>>
>> this is my first post, I am new to Gambas. I tried to find an answer to my
>> question by searching the list archives first, but have not been able to
>> find information that was to the point.
>>
>> There are my 2 questions:
>>
>> a) When I have loaded and displayed a picture, how can I access the color
>> information of its individual pixels? I would like to read the red, green,
>> blue, and alpha values of any pixel that I specify.
>>
>> b) Is this possible for any screen pixels, even for pixels outside my
>> picture/my Gambas application?
>>
>> Thank you.
>> *
>> Regards,*
>> ukimiku
>>
>>
>>
>> --
>> View this message in context:
>> http://gambas.8142.n7.nabble.com/Reading-RGB-A-values-of-screen-pixels-tp44309.html
>> Sent from the gambas-user mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> Shape the Mobile Experience: Free Subscription
>> Software experts and developers: Be at the forefront of tech innovation.
>> Intel(R) Software Adrenaline delivers strategic insight and game-changing
>> conversations that shape the rapidly evolving mobile landscape. Sign up
>> now.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
>
>
> ------------------------------------------------------------------------------
> Shape the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing
> conversations that shape the rapidly evolving mobile landscape. Sign up now.
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fabien Bodard




More information about the User mailing list