Okay, I've made initial support for shrinking and growing stamps in
Tux Paint.  Please grab the latest code from CVS and let me know what
you think!

Stamps can be 25%, 50%, 100%, 200% or 400% of their original size.
(I may allow for finer granularity, at least for the > 100% sizes...
e.g., add 300%)

Like Mirror and Flip, the size setting is per-stamp.  The shrink button
becomes greyed out when the stamp is at 25%.  The grow button greys out
when the stamp is at 400%.

I hope that, otherwise, the interface makes sense.


The dotted outline of the stamp (which floats around with the mouse pointer)
shrinks and grows.  I cheated when implementing this.  I just look at
the original stamp, and then space the dots closer together (< 100%) or
further apart (> 100%).

Finally, the > 100% scaling looks bad, in my opinion.  Kids might not care,
of course.  There's no pixel interpolation or antialiasing being done
when scaling upwards, so the stamps will appear blocky.

I'm using the standard "thumbnail()" function, so it DOES anti-alias
when shrinking down.  Looks good, too! :^)



I hope to get 0.9.13 released later this week...

Enjoy!

-bill!
[EMAIL PROTECTED]                           Got kids?  Get Tux Paint! 
http://newbreedsoftware.com/bill/       http://newbreedsoftware.com/tuxpaint/

_______________________________________________
Tuxpaint-dev mailing list
[EMAIL PROTECTED]
http://tux4kids.net/mailman/listinfo/tuxpaint-dev

Reply via email to