ge2009
V2EX  ›  iPhone

有没工具可以给图片生成类似iOS上图标的“新”字

  •  
  •   ge2009 · Jun 4, 2013 · 13052 views
    This topic created in 4751 days ago, the information mentioned may be changed or developed.
    关于iOS图标上面新安装App上有一个“新”字的图标,有没什么工具可以给图片加类似这样的角标。例如给自己的头像加上一下2013的角标。
    3 replies    1970-01-01 08:00:00 +08:00
    Coda
        1
    Coda  
       Jun 4, 2013
    强大的photoshop, 找个角标的背景素材, 自己P呗.
    RoCry
        2
    RoCry  
       Jun 4, 2013   ❤️ 1
    - (UIImage *)addImage:(UIImage *)image1 toImage:(UIImage *)image2 {
    UIGraphicsBeginImageContext(image2.size);

    CGFloat x1 = (image2.size.width - image1.size.width) / 2.0;
    CGFloat y1 = (image2.size.height - image1.size.height) / 2.0;

    // Draw image1
    [image1 drawInRect:CGRectMake(x1, y1, image1.size.width, image1.size.height)];

    // Draw image2
    [image2 drawInRect:CGRectMake(0, 0, image2.size.width, image2.size.height)];

    UIImage *resultingImage = UIGraphicsGetImageFromCurrentImageContext();

    UIGraphicsEndImageContext();

    return resultingImage;
    }

    // 我之前写的代码... 你稍微调一下就好了
    ge2009
        3
    ge2009  
    OP
       Jun 4, 2013
    @RoCry 非常感谢,可以用的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2799 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 03:58 · PVG 11:58 · LAX 20:58 · JFK 23:58
    ♥ Do have faith in what you're doing.