Latest iOS App development icon Spec Auto Clipper (C #)

Source: Internet
Author: User

I did iOS app development, in order to toss an iOS app icon, wrote a simple iOS application Development icon Specification automatic cutter, but time and time, the current iOS device screen specification is also more and more, a version will produce several specifications of the resolution of the icon, With PS what one of a generation laborious, if the icon has to be rebuilt again, so the whole program to do this work easier.

The idea is very simple, first import a large picture ( Note: This graph must be greater than or equal to 1024*1024, because [email protected] is the specification is 1024*1024), and then generate a small map of the corresponding pixels, and finally saved.

First look at these icon specifications:

For Ad Hoc only[email protected]:1024*1024itunesartwork:512*512//for App icon[email protected]:180*180/ /iphone 6 Plus (@3x) [Email protected]:120*120//iphone 6 and IPhone 5 (@2x) [Email protected]:152*152//ipad and ipad Mini (@2x) Icon-76.png:76*76//ipad 2 and ipad mini (@1x) Icon.png:57*57//iphone Non-retina (IOS 6.1 and Prior) [EMAIL&NB Sp;protected]:114*114//iphone Retina (iOS 6.1 and Prior) Icon-72.png:72*72//ipad Non-retina (iOS 6.1 and Prior) [email& Nbsp;protected]:144*144//ipad Retina (IOS 6.1 and Prior)//for Spotlight search Results Iconicon-40.png:40*40//ipad non-retina[email protected]:80*80//ipad retina[email protected]:120*120//iPhone 6 Plus//for Settings Iconicon-29.png:29*29//iphone Non-retina (iOS 6.1 and Prior) [Email protected]:58*58//iphone Retina (iOS 6.1 and Prior) [Email protected]:87*87//iphone 6 Plusicon-50.png:50*50//ipad Non-retina (IOS 6.1 and Prior) [email  Protected]:100*100//ipad Retina (IOS 6.1 and Prior)

Here I use C # to write, mainly considering that C # bitmap class has a getthumbnailimage () method is easy to achieve image reduction, after a simple packaging to achieve the image clipping function as follows:

<summary>////Get equal scaled Pictures///</summary>//<param name= "Imgpath" > Image path to zoom < /param>//<param name= "Savepath" > Zoom picture Save path </param>//<param name= "format" > Zoom picture saved format        lt;/param>//<param name= "Scaling" > width or height to maintain </param>//<returns></returns>            public bool GetThumbnail (string Imgpath, String savepath, imageformat format, int scaling) {try {using (Bitmap Mybitmap = new Bitmap (Imgpath)) {using (Image m                        Ythumbnail = Mybitmap.getthumbnailimage (Scaling, scaling, () = {return false;}, IntPtr.Zero)) {                    Mythumbnail.save (savepath, format);            }} return true;            } catch {return false; }        }

Final run:

Generated icon:


The specific code can be downloaded here: http://download.csdn.net/detail/wangqiuyun/7976361

Reprint Please specify: http://blog.csdn.net/wangqiuyun/article/details/39576293


Latest iOS App development icon Spec Auto Clipper (C #)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.