# return normalized /Rotate value:one of 0, 90, 180, 270
(rotate)
| 20988 | |
| 20989 | |
| 20990 | def JM_norm_rotation(rotate): |
| 20991 | ''' |
| 20992 | # return normalized /Rotate value:one of 0, 90, 180, 270 |
| 20993 | ''' |
| 20994 | while rotate < 0: |
| 20995 | rotate += 360 |
| 20996 | while rotate >= 360: |
| 20997 | rotate -= 360 |
| 20998 | if rotate % 90 != 0: |
| 20999 | return 0 |
| 21000 | return rotate |
| 21001 | |
| 21002 | |
| 21003 | def JM_object_to_buffer(what, compress, ascii): |
no outgoing calls
no test coverage detected
searching dependent graphs…