49 |
""" |
""" |
50 |
# resolution in pixel/inch |
# resolution in pixel/inch |
51 |
|
|
52 |
assert(scale > 0) |
assert scale > 0 |
53 |
|
|
54 |
self.dc = dc |
self.dc = dc |
55 |
self.scale = scale |
self.scale = scale |
112 |
old_prop = prop |
old_prop = prop |
113 |
|
|
114 |
if shapetype == SHAPETYPE_ARC: |
if shapetype == SHAPETYPE_ARC: |
115 |
fill = Color.None |
fill = Color.Transparent |
116 |
else: |
else: |
117 |
fill = prop.GetFill() |
fill = prop.GetFill() |
118 |
|
|
119 |
if fill is Color.None: |
if fill is Color.Transparent: |
120 |
brush = wxTRANSPARENT_BRUSH |
brush = wxTRANSPARENT_BRUSH |
121 |
else: |
else: |
122 |
color = Color2wxColour(fill) |
color = Color2wxColour(fill) |
124 |
|
|
125 |
stroke = prop.GetLineColor() |
stroke = prop.GetLineColor() |
126 |
stroke_width = prop.GetLineWidth() |
stroke_width = prop.GetLineWidth() |
127 |
if stroke is Color.None: |
if stroke is Color.Transparent: |
128 |
pen = wxTRANSPARENT_PEN |
pen = wxTRANSPARENT_PEN |
129 |
else: |
else: |
130 |
color = Color2wxColour(stroke) |
color = Color2wxColour(stroke) |