Image fill question
J. Landman Gay
jacque at hyperactivesw.com
Tue Nov 4 14:16:52 EST 2014
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 | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list