Opened 20 years ago

Closed 20 years ago

#837 closed defect (fixed)

No BGColor with transparent pixmap symbol

Reported by: jlacroix Owned by: mapserverbugs
Priority: high Milestone:
Component: MapServer C Library Version: 4.2
Severity: normal Keywords:
Cc: sgillies@…

Description

When using a pixmap symbol to fill a polygon, the background color of the layer
is not used. Normally we should not see the color under the pixmap so this
behavior makes sense. However when we use the TRANSPARENT parameter of the
symbol, I think we should see the BG color instead of the color under the
current layer. I propose to change this, so we fill the polygon if the
transparent option is setted and we have a BG color.

What do you think Steve?

Change History (4)

comment:1 by sgillies@…, 20 years ago

Cc: sgillies@… added

comment:2 by sdlime, 20 years ago

Seems reasonable to me. Can you make the change?

comment:3 by jlacroix, 20 years ago

Status: newassigned
Yes I'll take care of it right now. Thanks!

comment:4 by jlacroix, 20 years ago

Resolution: fixed
Status: assignedclosed
I fixed msDrawShadeSymbolGD and msCircleDrawShadeSymbolGD to use the BG color
with transparent pixmap symbols.

>    if(symbol->transparent == MS_TRUE && bc > -1)
>      imageFilledCircle(img, p, r, bc);

>    if(symbol->transparent == MS_TRUE && bc > -1)
>      imageFilledPolygon(img, p, bc, ox, oy); 

Marking as FIXED
This change is only in 4.3 
Note: See TracTickets for help on using tickets.