summaryrefslogtreecommitdiff
path: root/xps/xpsgradient.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2009-10-01 15:47:54 +0000
committerTor Andersson <tor.andersson@artifex.com>2009-10-01 15:47:54 +0000
commit9daff84ea2e246eb3f777e34ef5050f829be0440 (patch)
tree147c4601a7f516e100ec0cbdcbe8f18a7c244299 /xps/xpsgradient.c
parentd13950e44a2847add91ac6dfd91465013e6be096 (diff)
downloadghostpdl-9daff84ea2e246eb3f777e34ef5050f829be0440.tar.gz
Draw the alpha channel of an transparent gradient as grayscale with TRANSPARENCY_MASK_Luminosity instead of TRANSPARENCY_MASK_Alpha to generate the soft mask.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10111 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'xps/xpsgradient.c')
-rw-r--r--xps/xpsgradient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xps/xpsgradient.c b/xps/xpsgradient.c
index 6cfcb78ec..0eed8ae99 100644
--- a/xps/xpsgradient.c
+++ b/xps/xpsgradient.c
@@ -777,7 +777,7 @@ xps_parse_gradient_brush(xps_context_t *ctx, char *base_uri, xps_resource_t *dic
gs_transparency_mask_params_t params;
gs_transparency_group_params_t tgp;
- gs_trans_mask_params_init(&params, TRANSPARENCY_MASK_Alpha);
+ gs_trans_mask_params_init(&params, TRANSPARENCY_MASK_Luminosity);
gs_begin_transparency_mask(ctx->pgs, &params, &bbox, 0);
draw(ctx, root, spread_method, opacity_func);
gs_end_transparency_mask(ctx->pgs, TRANSPARENCY_CHANNEL_Opacity);