0

画像を変換しながら画像を拡大縮小したいのですが、同じ方法で行うことはできますか?

    [UIView beginAnimations:annKey context:NULL];
    [UIView setAnimationDelegate:self];
    [UIView setAnimationDuration:duration];
    [UIView setAnimationCurve:curve];
    [UIView setAnimationBeginsFromCurrentState:YES];
    [UIView setAnimationDidStopSelector:@selector(animationFinished:finished:context:)];
    CGAffineTransform transform = CGAffineTransformMakeTranslation(x, y);
    CGAffineTransform scale = CGAffineTransformMakeScale(xx, yy);
    image.transform = scale;
    image.transform = transform;
    [UIView commitAnimations];
4

1 に答える 1

0

CGAffineTransformConcatビューを変換およびスケーリングするには、を使用して2つの変換を連結する必要があります。現在、縮尺変換を平行移動に置き換えているだけです。

于 2012-07-03T18:01:54.727 に答える