[reportlab-users] Image - mask parameter - effect on screen vs printer ?
Tim Roberts
timr at probo.com
Thu Feb 28 12:35:18 EST 2013
Richard Shea wrote:
> To do this I've identified the colour which is current background of the
> image (229, 229, 229) and set the mask parameter on the corresponding
> Image object to ['229', '229', '229', '229', '229', '229'] so that that
> colour should become transparent.
>
> I then set the relevant row in the table to have a BACKGROUND of
> Color(float(229)/256, float(229)/256, float(229)/256).
Your denominators should be 255, not 256. Remember that 255 maps to
1.0. That's a small difference, but in a sophisticated color printer,
it might be visible.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the reportlab-users
mailing list