简体   繁体   中英

Moving an image using Core Animation

Any idea why the small image that I move across the screen gets blurry? While being in motion, the small details in the image become unclear and I think that it is a problem.

        CABasicAnimation *anim = [CABasicAnimation animationWithKeyPath:@"position"];
    anim.fromValue  = [NSValue valueWithCGPoint:CGPointMake(px2.x, px2.y)];
    anim.toValue    = [NSValue valueWithCGPoint:CGPointMake(P3x, P3y)];
    anim.duration   = 1.5f;
    anim.repeatCount =1;
    anim.removedOnCompletion = YES;
    anim.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn];
    [LA  addAnimation:anim forKey:@"position"];

最终,这被确定为LCD面板延迟。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM