[xep-support] Support of gradient and texture paint in svg

From: Christian Kriebel <christian.kriebel@assentis.com>
Date: Thu May 04 2006 - 04:34:30 PDT

Hello

I need to embed svg graphics containing gradient and texture paint to FO and
render pdf from it.
Today it's not possible to use <linearGradient> or <pattern> elements in svg
?
The pdf shows no color for it.

Are these types of colors not yet supported by xep ? If so, when do you plan
to do it ?
How can I workaround this ?

I've attached a svg and a pdf (rendered by xep 4.5) wich contains a "normal"
fill attribute, a fill pattern and a fill gradient.

Thanks in advance.

A) a gradient paint is represented in Java for example as:

GradientPaint gp0 = new GradientPaint(0.0f, 0.0f, java.awt.Color.blue, 0.0f,
0.0f, new java.awt.Color(0, 0, 64));

B) a texture paint is represented in Java for example as:
        
BufferedImage bi = new BufferedImage(5, 5, BufferedImage.TYPE_INT_RGB);
Graphics2D big = bi.createGraphics();
big.setColor(java.awt.Color.blue);
big.fillRect(0, 0, 5, 5);
big.setColor(java.awt.Color.lightGray);
big.fillOval(0, 0, 5, 5);
Rectangle r = new Rectangle(0, 0, 5, 5);
TexturePaint tp = new TexturePaint(bi, r);

~~~~~~~~~~~~~~~~~~~~~
Dr. Christian Kriebel - CTO
Assentis Technologies AG
Lettenstr. 7, 6343 Rotkreuz, Switzerland

mailto:christian.kriebel@assentis.com
Mobile: +41-79-233 19 74
Phone : +41-41-790 91 92
~~~~~~~~~~~~~~~~~~~~~

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html

Received on Thu May 4 05:09:11 2006

This archive was generated by hypermail 2.1.8 : Thu May 04 2006 - 05:09:14 PDT