On Fri, Jan 19, 2007 at 10:25:54PM -0500, Jean Thierry-Mieg wrote:
> I would like to create a magnifier using a .sc file
> and swfc
>
> i have a rectangle drawing, say
>
> .png p1 "p1.png"
> .put p1 x=10 y=10
>
> of width 100
> i now wish to cut out the piece x=20 to x=30
> expand it by a factor 2 and draw it over p1 centered at 25
>
> how do i mask a part of the picture?
Use .texture for that:
.flash filename="texture.swf" version=6
.png p1 "p1.png"
.texture t1=p1 x=-20 y=-30 scale=100%
.box b1 width=200 height=200 fill=t1 line=0
.put b1
.end
(you'll need to play around with the scale and width/height
parameters to get what you want)
> as i mentioned a few weeks ago, i modified swfc.c and parser.lex
> so that i can use swcf inside a pipe
> cat toto.sc | swfc -o stdout > toto.swf
> i needed that to generate dynamic .swf pages from a server
> how do i send this modif so it gets integrated ?
That feature's now included in my working version of swftools
(which'll get uploaded in a few days).
The new syntax is
swfc - # read from stdin
swfc -o - # write to stdout
e.g.
cat anim.sc | swfc - -o -
.
Greetings
Matthias
_______________________________________________
Swftools-common mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/swftools-common