def make_appearance_stream(self): L = self._location A = self._appearance stream = ContentStream([Save()]) set_appearance_state(stream, A) add_bezier_circle(stream, L.x1, L.y1, L.x2, L.y2) stroke_or_fill(stream, A) stream.add(Restore()) return stream
def make_appearance_stream(self): A = self._appearance points = self._location.points stream = ContentStream([Save()]) set_appearance_state(stream, A) stream.add(Move(points[0][0], points[0][1])) stream.add(CSLine(points[1][0], points[1][1])) stroke_or_fill(stream, A) stream.add(Restore()) return stream
def make_appearance_stream(self): L = self._location A = self._appearance stream = ContentStream([Save()]) set_appearance_state(stream, A) stream.add(Rect( L.x1, L.y1, L.x2 - L.x1, L.y2 - L.y1, )) stroke_or_fill(stream, A) stream.add(Restore()) # TODO dash array return stream