You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Vangelis Karageorgos <va...@osmosis.gr> on 2008/06/18 14:11:42 UTC

alpha transparency in XML-defined color?

Hi everybody,

a question we've come up with is whether FOP supports alpha transparency in,
say, a block's background color. We have checked out the .png transparency
that has been working fine, yet we're considering whether we could attempt
similar transparency effects with nested blocks of different background
colors including alpha transparency.

thanks in advance,

Re: alpha transparency in XML-defined color?

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
No idea. I don't have any plans in this direction and as I said, this is
not something that's in the XSL spec so there's little motivation to
work on it (especially if there are work-arounds). You're also the first
to ask for such a feature (if my brain serves me right). You can always
implement it yourself and submit a patch.

On 27.06.2008 13:38:54 v@k wrote:
> 
> Hi Jeremias, 
> 
> thanks, what you suggest as a workaround does indeed work with SVG and .png
> that both support opacity attributes. Is there any idea on whether alpha
> values for background will be supported by FOP in the near future?
> 
> all the best, 
> 
> 
> 
> Jeremias Maerki-2 wrote:
> > 
> > XSL-FO, for one, doesn't support specifying alpha values for background
> > colors. That would have to be done through extension attributes or
> > functions. At the moment, FOP does not support that, except if you use
> > an SVG graphic as background image where you can use
> > fill-/stroke-opacity. I haven't checked that approach but it should work.
> > 
> > HTH
> > 
> > On 18.06.2008 14:11:42 Vangelis Karageorgos wrote:
> >> Hi everybody,
> >> 
> >> a question we've come up with is whether FOP supports alpha transparency
> >> in,
> >> say, a block's background color. We have checked out the .png
> >> transparency
> >> that has been working fine, yet we're considering whether we could
> >> attempt
> >> similar transparency effects with nested blocks of different background
> >> colors including alpha transparency.
> >> 
> >> thanks in advance,
> > 
> > 
> > 
> > 
> > Jeremias Maerki
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> > For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> > 
> > 
> > 
> 
> -- 
> View this message in context: http://www.nabble.com/alpha-transparency-in-XML-defined-color--tp17981400p18153300.html
> Sent from the FOP - Users mailing list archive at Nabble.com.




Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: alpha transparency in XML-defined color?

Posted by "v@k" <va...@osmosis.gr>.
Hi Jeremias, 

thanks, what you suggest as a workaround does indeed work with SVG and .png
that both support opacity attributes. Is there any idea on whether alpha
values for background will be supported by FOP in the near future?

all the best, 



Jeremias Maerki-2 wrote:
> 
> XSL-FO, for one, doesn't support specifying alpha values for background
> colors. That would have to be done through extension attributes or
> functions. At the moment, FOP does not support that, except if you use
> an SVG graphic as background image where you can use
> fill-/stroke-opacity. I haven't checked that approach but it should work.
> 
> HTH
> 
> On 18.06.2008 14:11:42 Vangelis Karageorgos wrote:
>> Hi everybody,
>> 
>> a question we've come up with is whether FOP supports alpha transparency
>> in,
>> say, a block's background color. We have checked out the .png
>> transparency
>> that has been working fine, yet we're considering whether we could
>> attempt
>> similar transparency effects with nested blocks of different background
>> colors including alpha transparency.
>> 
>> thanks in advance,
> 
> 
> 
> 
> Jeremias Maerki
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/alpha-transparency-in-XML-defined-color--tp17981400p18153300.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: alpha transparency in XML-defined color?

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
XSL-FO, for one, doesn't support specifying alpha values for background
colors. That would have to be done through extension attributes or
functions. At the moment, FOP does not support that, except if you use
an SVG graphic as background image where you can use
fill-/stroke-opacity. I haven't checked that approach but it should work.

HTH

On 18.06.2008 14:11:42 Vangelis Karageorgos wrote:
> Hi everybody,
> 
> a question we've come up with is whether FOP supports alpha transparency in,
> say, a block's background color. We have checked out the .png transparency
> that has been working fine, yet we're considering whether we could attempt
> similar transparency effects with nested blocks of different background
> colors including alpha transparency.
> 
> thanks in advance,




Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org