Convert points to display units. You need to override this function (unless your backend doesn't have a dpi, e.g., postscript or svg). Some imaging systems assume some value for pixels per inch:: points to pixels = points * pixels_per_inch/72 * dpi/72
(self, points)
| 629 | return GraphicsContextBase() |
| 630 | |
| 631 | def points_to_pixels(self, points): |
| 632 | """ |
| 633 | Convert points to display units. |
| 634 | |
| 635 | You need to override this function (unless your backend |
| 636 | doesn't have a dpi, e.g., postscript or svg). Some imaging |
| 637 | systems assume some value for pixels per inch:: |
| 638 | |
| 639 | points to pixels = points * pixels_per_inch/72 * dpi/72 |
| 640 | |
| 641 | Parameters |
| 642 | ---------- |
| 643 | points : float or array-like |
| 644 | |
| 645 | Returns |
| 646 | ------- |
| 647 | Points converted to pixels |
| 648 | """ |
| 649 | return points |
| 650 | |
| 651 | def start_rasterizing(self): |
| 652 | """ |
no outgoing calls
no test coverage detected