(self, image, angle=0, center=None, new_center=None,
                                   scale=None, expand=False)
return image.transform(image.size, Image.AFFINE,
                               (a,b,c,d,e,f), resample=Image.BICUBIC)
experimental - not used yet
experimental - not used yet
experimental - not used yet
def ScaleRotateTranslate(self, image, angle=0, center=None, new_center=None,
                                   scale=None, expand=False):
        '''
        experimental - not used yet
        '''
        if center is None:
            return image.rotate(angle, expand)
        angle = -angle / 180.0 * math.pi
        nx, ny = x, y = center
        if new_center is not None and new_center != center:
            (nx, ny) = new_center
        sx = sy = 1.0
        if scale:
            (sx, sy) = scale, scale
        cosine = math.cos(angle)
        sine = math.sin(angle)
        a = cosine / sx
        b = sine / sx
        c = x - nx * a - ny * b
        d = -sine / sy
        e = cosine / sy
        f = y - nx * d - ny * e
        return image.transform(image.size, Image.AFFINE,
                               (a,b,c,d,e,f), resample=Image.BICUBIC)
def ScaleRotateTranslate ( self , image , angle = 0 , center = None , new_center = None , scale = None , expand = False ) : if center is None : return image . rotate ( angle , expand ) angle = - angle / 180.0 * math . pi nx , ny = x , y = center if new_center is not None and new_center != center : ( nx , ny ) = new_center sx = sy = 1.0 if scale : ( sx , sy ) = scale , scale cosine = math . cos ( angle ) sine = math . sin ( angle ) a = cosine / sx b = sine / sx c = x - nx * a - ny * b d = - sine / sy e = cosine / sy f = y - nx * d - ny * e return image . transform ( image . size , Image . AFFINE , ( a , b , c , d , e , f ) , resample = Image . BICUBIC )