ge2009
V2EX  ›  iPhone

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

  •  
  •   ge2009 · Jun 4, 2013 · 13740 views
    This topic created in 4905 days ago, the information mentioned may be changed or developed.
    关于iOS图标上面新安装App上有一个“新”字的图标,有没什么工具可以给图片加类似这样的角标。例如给自己的头像加上一下2013的角标。
    3 replies  •  1970-01-01 08:00:00 +08:00
    Coda
    Coda
    Jun 4, 2013
    1
    强大的photoshop, 找个角标的背景素材, 自己P呗.
    RoCry
    RoCry
    Jun 4, 2013❤️1
    2
    - (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
    ge2009
    OP
    Jun 4, 2013
    3
    @RoCry 非常感谢,可以用的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1619 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 12:35 · PVG 20:35 · LAX 04:35 · JFK 07:35
    ♥ Do have faith in what you're doing.