#i111846# added drawing BackgroundFill for hatch when not AAed
This commit is contained in:
parent
003e2a179c
commit
625015106b
1 changed files with 11 additions and 1 deletions
|
@ -469,19 +469,29 @@ namespace drawinglayer
|
|||
// This is wrong in principle, but looks nicer. This could also be done here directly
|
||||
// without VCL usage if needed
|
||||
const primitive2d::FillHatchPrimitive2D& rFillHatchPrimitive = static_cast< const primitive2d::FillHatchPrimitive2D& >(rCandidate);
|
||||
const attribute::FillHatchAttribute& rFillHatchAttributes = rFillHatchPrimitive.getFillHatch();
|
||||
|
||||
// create hatch polygon in range size and discrete coordinates
|
||||
basegfx::B2DRange aHatchRange(rFillHatchPrimitive.getObjectRange());
|
||||
aHatchRange.transform(maCurrentTransformation);
|
||||
const basegfx::B2DPolygon aHatchPolygon(basegfx::tools::createPolygonFromRect(aHatchRange));
|
||||
|
||||
if(rFillHatchAttributes.isFillBackground())
|
||||
{
|
||||
// #i111846# background fill is active; draw fill polygon
|
||||
const basegfx::BColor aPolygonColor(maBColorModifierStack.getModifiedColor(rFillHatchPrimitive.getBColor()));
|
||||
|
||||
mpOutputDevice->SetFillColor(Color(aPolygonColor));
|
||||
mpOutputDevice->SetLineColor();
|
||||
mpOutputDevice->DrawPolygon(aHatchPolygon);
|
||||
}
|
||||
|
||||
// set hatch line color
|
||||
const basegfx::BColor aHatchColor(maBColorModifierStack.getModifiedColor(rFillHatchPrimitive.getBColor()));
|
||||
mpOutputDevice->SetFillColor();
|
||||
mpOutputDevice->SetLineColor(Color(aHatchColor));
|
||||
|
||||
// get hatch style
|
||||
const attribute::FillHatchAttribute& rFillHatchAttributes = rFillHatchPrimitive.getFillHatch();
|
||||
HatchStyle eHatchStyle(HATCH_SINGLE);
|
||||
|
||||
switch(rFillHatchAttributes.getStyle())
|
||||
|
|
Loading…
Reference in a new issue