if(strcmp(_image->ob_type->tp_name, "ImagingCore")) {
PyErr_SetString(PyExc_Exception, setError("not an image: %s", _image->ob_type->tp_name));
return 0;
}
ImagingObject*image = (ImagingObject*)_image;
return image->image->xsize;
if(strcmp(_image->ob_type->tp_name, "ImagingCore")) {
PyErr_SetString(PyExc_Exception, setError("not an image: %s", _image->ob_type->tp_name));
return 0;
}
ImagingObject*image = (ImagingObject*)_image;
return image->image->xsize;
if(strcmp(_image->ob_type->tp_name, "ImagingCore")) {
PyErr_SetString(PyExc_Exception, setError("not an image: %s", _image->ob_type->tp_name));
return 0;
}
ImagingObject*image = (ImagingObject*)_image;
return image->image->ysize;
if(strcmp(_image->ob_type->tp_name, "ImagingCore")) {
PyErr_SetString(PyExc_Exception, setError("not an image: %s", _image->ob_type->tp_name));
return 0;
}
ImagingObject*image = (ImagingObject*)_image;
return image->image->ysize;
if(strcmp(_image->ob_type->tp_name, "ImagingCore")) {
PyErr_SetString(PyExc_Exception, setError("not an image: %s", _image->ob_type->tp_name));
return 0;
if(strcmp(_image->ob_type->tp_name, "ImagingCore")) {
PyErr_SetString(PyExc_Exception, setError("not an image: %s", _image->ob_type->tp_name));
return 0;
if(strcmp(_image->ob_type->tp_name, "ImagingCore")) {
PyErr_SetString(PyExc_Exception, setError("not an image: %s", _image->ob_type->tp_name));
return 0;
if(strcmp(_image->ob_type->tp_name, "ImagingCore")) {
PyErr_SetString(PyExc_Exception, setError("not an image: %s", _image->ob_type->tp_name));
return 0;
}
PyErr_SetString(PyExc_Exception, setError("Unsupported image format: %s (try .convert(\"RGBA\")", image->image->mode));
}
PyErr_SetString(PyExc_Exception, setError("Unsupported image format: %s (try .convert(\"RGBA\")", image->image->mode));