in ez_wsi_dicomweb/dicom_slide.py [0:0]
def is_patch_fully_in_source_image_dim(self, width: int, height: int) -> bool:
if self.x < 0 or self.y < 0 or self.width <= 0 or self.height <= 0:
return False
return self.x + self.width <= width and self.y + self.height <= height