Re: making a graphic the shape of a bitmap

2012-07-29 Thread Alejandro Tejada
05.n4.nabble.com/making-a-graphic-the-shape-of-a-bitmap-tp4652959p4653027.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubsc

Re: making a graphic the shape of a bitmap

2012-07-29 Thread Roger Eller
Alejandro also has a few bezier manipulation examples. Just look for filenames beginning with 'bezier'. All of this work is very useful to us. I wish RunRev would adapt some of this into the drawing tools in the IDE. http://andregarzia.on-rev.com/alejandro/stacks/ ~Roger On Sun, Jul 29, 2012

Re: making a graphic the shape of a bitmap

2012-07-29 Thread Roger Eller
On Sun, Jul 29, 2012 at 12:40 PM, Jim Hurley wrote: > When you say, "there doesn't seem to be a way to edit a graphic's shape" > how do you mean? There is "Reshape graphic" under the Object menu for > manual editing. Or did you mean something more sophisticated? > > Jim Hurley > Alejandro has don

Re: making a graphic the shape of a bitmap

2012-07-29 Thread Colin Holgate
That is something I didn't know about, and it could be of use for reshaping low count polygon. I have complicated tight fitting curves, and the reshape feature shows that as hundreds of anchor points, reshaping it gives me lots of spikes. If I made a curve out of straight lines, that might get m

Re: making a graphic the shape of a bitmap

2012-07-29 Thread Jim Hurley
> > Message: 14 > Date: Sat, 28 Jul 2012 17:31:12 -0400 > From: Colin Holgate > To: How to use LiveCode > Subject: making a graphic the shape of a bitmap > Message-ID: <2c60fc45-5cd4-4ac1-b12b-c802eb95e...@verizon.net> > Content-Type: text/plain; charset=us-ascii &

Re: making a graphic the shape of a bitmap

2012-07-28 Thread Monte Goulding
Yep. It I thought you wanted to script it ;-) Once upon a time there was a polygon editor. I don't know if it's still around. -- M E R Goulding Software development services mergExt - There's an external for that! On 29/07/2012, at 9:13 AM, Colin Holgate wrote: > I did mean an image in LiveCo

Re: making a graphic the shape of a bitmap

2012-07-28 Thread Colin Holgate
I did mean an image in LiveCode, but the workaround is to take the image into Photoshop, and Illustrator and do the careful tracing there, and to optimize the curves and so on. It would be nice if LiveCode had a way to adjust a graphic you've made. On Jul 28, 2012, at 6:58 PM, Monte Goulding

Re: making a graphic the shape of a bitmap

2012-07-28 Thread Monte Goulding
Ok, I thought you meant an image in livecode. Of course vector graphics import would be much better. -- M E R Goulding Software development services mergExt - There's an external for that! On 29/07/2012, at 8:24 AM, Colin Holgate wrote: > I think I'm ok now, using Alejandro's EPS importer. >

Re: making a graphic the shape of a bitmap

2012-07-28 Thread Scott Rossi
You got your answer already -- Alejandro's EPS import stack is how I would do it. But I might offer a suggestion: if you plan to scale the vector "snake" at all, you would do well to store the original point description of the graphic at a somewhat large-ish size, in a custom property for example.

Re: making a graphic the shape of a bitmap

2012-07-28 Thread Colin Holgate
I think I'm ok now, using Alejandro's EPS importer. ___ 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-live

Re: making a graphic the shape of a bitmap

2012-07-28 Thread Colin Holgate
How would that then be changed to the points of a graphic, without requiring thousands of points? I'm going to give SVGL a try (http://revonline2.runrev.com/stack/112/SVGL), that may be a way to solve things. On Jul 28, 2012, at 5:38 PM, Monte Goulding wrote: > You could parse the alphaData

Re: making a graphic the shape of a bitmap

2012-07-28 Thread Monte Goulding
You could parse the alphaData of the image and find the boundaries. Cheers -- M E R Goulding Software development services mergExt - There's an external for that! On 29/07/2012, at 7:31 AM, Colin Holgate wrote: > How can you make a graphic be the exact shape of an irregular shaped image? > F

Re: making a graphic the shape of a bitmap

2012-07-28 Thread Colin Holgate
That should be "extremely likely you would make a mistake" On Jul 28, 2012, at 5:31 PM, Colin Holgate wrote: > How can you make a graphic be the exact shape of an irregular shaped image? > For example, say you had an alpha transparent background image of a snake, > and you wanted a graphic co

making a graphic the shape of a bitmap

2012-07-28 Thread Colin Holgate
How can you make a graphic be the exact shape of an irregular shaped image? For example, say you had an alpha transparent background image of a snake, and you wanted a graphic control that was the same shape as the outline of the snake, how could that be done? You could oh-so-carefully draw the