| 807 | "); |
| 808 | |
| 809 | static PyObject * |
| 810 | Image_scale(PyImage* self, PyObject* args, PyObject* kwargs) |
| 811 | { |
| 812 | auto api = PyUtilApiFunction("d", PyRunTimeErr, __func__); |
| 813 | static char *keywords[] = {"scale_factor", NULL}; |
| 814 | double scale; |
| 815 | |
| 816 | if (!PyArg_ParseTupleAndKeywords(args, kwargs, api.format, keywords, &scale)) { |
| 817 | return api.argsError(); |
| 818 | } |
| 819 | |
| 820 | if (scale <= 0.0) { |
| 821 | api.error("The 'scale_factor' argument must be >= 0.0."); |
| 822 | return nullptr; |
| 823 | } |
| 824 | |
| 825 | ScaleImage(self, scale); |
| 826 | |
| 827 | Py_RETURN_NONE; |
| 828 | } |
| 829 | |
| 830 | //-------------- |
| 831 | // Image_origin |
nothing calls this directly
no test coverage detected