On 11/4/2014, 12:20 PM, FlexibleLearning.com wrote:
I have a 10px x 10px image. There is a 1px black border with a colour fill.

How do I set the colour fill of the image using an arbitrary RGB value?

It needs to be a mathematical approach setting the pixel data directly
(taking and applying a screen shot of a graphic is going to be too slow).

I've tried all sorts and failed miserably... Can anyone help with this
challenge?

If this is a new image object or an image with a solid fill already, I'd be inclined to do it the non-techy way. Have a script set the brushcolor to the RGB you want. Choose the bucket tool. Get the topleft of the image, add 1 or 2 pixels to each item of it, and do a "click at x,y". Choose the browse tool.

Should work, if I understand what you want.

--
Jacqueline Landman Gay         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to