Image fill question

Richard Gaskin ambassador at fourthworld.com
Tue Nov 4 15:02:22 EST 2014


Hugh Senior 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).

If you need to change it often you could take the lazy approach:  just 
make the portion you want to change transparent, and group the image 
with a rectangle graphic beneath it.

-- 
  Richard Gaskin
  Fourth World Systems
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  Follow me on Twitter: http://twitter.com/FourthWorldSys




More information about the use-livecode mailing list