Personal tools
You are here: Home Products Chimera Documentation Sample Receipts Image Masking with Font Image Masking with ChimeraText
Document Actions

Image Masking with ChimeraText

Image Masking with ChimeraText

Christof Haemmerle

This is a sample receipt to show how to use a font as a mask for a picture.
Page 2 of 2.

"""
>>> c = ChimeraText("Sans 12", "test")


Using the fill and stroke parameters you can do things that are
even more fun.
>>> p = Image("../tests/logo.jpg")
>>> c = ChimeraText("Sans 48", "test", fill, stroke="black")
>>> c.show()

Which would stroke the outside of the font in black and fill the
inside of the font with the image

"""

 
by Christof Haemmerle last modified July 21, 2006 - 00:15
Contributors: Benjamin Saller

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by