code: def _get_scalexy(self, ims_width, ims_height):
          
  
          # Get cell attributes
          cell_attributes = self.code_array.cell_attributes[self.key]
          angle = cell_attributes["angle"]
  
          if abs(angle) == 90:
              scale_x = self.rect[3] / float(ims_width)
              scale_y = self.rect[2] / float(ims_height)
  
          else:
              # Normal case
              scale_x = self.rect[2] / float(ims_width)
              scale_y = self.rect[3] / float(ims_height)
  
          return scale_x, scale_y
docs: Returns scale_x, scale_y for bitmap display