We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f27ce51 commit 47e2cfeCopy full SHA for 47e2cfe
openslide/lowlevel.py
@@ -193,8 +193,7 @@ def get_associated_image_dimensions(slide, name):
193
_read_associated_image = _func('openslide_read_associated_image', None,
194
[_OpenSlide, c_char_p, POINTER(c_uint32)])
195
def read_associated_image(slide, name):
196
- w, h = c_int64(), c_int64()
197
- _get_associated_image_dimensions(slide, name, byref(w), byref(h))
198
- buf = (w.value * h.value * c_uint32)()
+ w, h = get_associated_image_dimensions(slide, name)
+ buf = (w * h * c_uint32)()
199
_read_associated_image(slide, name, buf)
200
- return _load_image(buf, (w.value, h.value))
+ return _load_image(buf, (w, h))
0 commit comments