V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ge2009
V2EX  ›  iPhone

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

  •  
  •   ge2009 · 2013-06-04 08:14:06 +08:00 · 5220 次点击
    这是一个创建于 4001 天前的主题,其中的信息可能已经有所发展或是发生改变。
    关于iOS图标上面新安装App上有一个“新”字的图标,有没什么工具可以给图片加类似这样的角标。例如给自己的头像加上一下2013的角标。
    3 条回复    1970-01-01 08:00:00 +08:00
    Coda
        1
    Coda  
       2013-06-04 08:51:38 +08:00
    强大的photoshop, 找个角标的背景素材, 自己P呗.
    RoCry
        2
    RoCry  
       2013-06-04 09:33:38 +08:00   ❤️ 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
       2013-06-04 15:40:44 +08:00
    @RoCry 非常感谢,可以用的。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2492 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 08:07 · PVG 16:07 · LAX 01:07 · JFK 04:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.