Automatic cropping tool (C #) for the latest IOS Application Development Icon specifications #),

Source: Internet
Author: User
Tags home screen

Automatic cropping tool (C #) for the latest IOS Application Development Icon specifications #),

Early in the past, I developed IOS apps. I used C # To write a simple IOS APP development Icon Type Auto-cropping device for IOS apps, at present, there are more and more screen specifications for IOS devices. One version requires several types of resolution icons, which are hard to generate one by one with PS. If there are changes to the Icon, You have to generate it again, therefore, it is easier for the whole program to do this job.

The idea is very simple, leading to a large image (Note: This figure must be greater than or equal to 1024*1024, because the iTunesArtwork @ 2x specification is1024*1024), Generate a small image corresponding to the pixel, and save it.

First, let's take a look at the current Icon specifications:

//for Ad Hoc OnlyiTunesArtwork@2x:1024*1024iTunesArtwork:512*512//for App IconIcon-60@3x.png:180*180//iPhone 6 Plus (@3x)Icon-60@2x.png:120*120//iPhone 6 and iPhone 5 (@2x)Icon-76@2x.png: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)Icon@2x.png:114*114//iPhone Retina (iOS 6.1 and Prior)Icon-72.png:72*72//iPad Non-Retina (iOS 6.1 and Prior)Icon-72@2x.png:144*144//iPad Retina (iOS 6.1 and Prior)//for Spotlight search results iconIcon-40.png:40*40//iPad Non-RetinaIcon-40@2x.png:80*80 //iPad RetinaIcon-40@3x.png:120*120 //iPhone 6 Plus//for Settings iconIcon-29.png:29*29//iPhone Non-Retina (iOS 6.1 and Prior)Icon-29@2x.png:58*58//iPhone Retina (iOS 6.1 and Prior)Icon-29@3x.png:87*87//iPhone 6 PlusIcon-50.png:50*50//iPad Non-Retina (iOS 6.1 and Prior)Icon-50@2x.png:100*100//iPad Retina (iOS 6.1 and Prior)

Here I use C # To write, mainly considering that the Bitmap class in C # has a GetThumbnailImage () method that can easily narrow down the image. The following is a simple packaging function for image cropping:

/// <Summary> /// method for obtaining proportional scaling images /// </summary> /// <param name = "imgPath"> path of the image to be scaled </ param> /// <param name = "savePath"> zooming the image storage path </param> /// <param name = "format"> format of zooming the image </param> /// <param name = "scaling"> width or height to be maintained </param> /// <returns> </returns> public bool GetThumbnail (string imgPath, string savePath, ImageFormat format, int scaling) {try {using (Bitmap myBitmap = new Bitmap (imgPath) {using (Image myThumbnail = 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

Reprinted Please note: http://blog.csdn.net/wangqiuyun/article/details/39576293



I am a beginner in ios development. Now I want to create an iphone app icon. I don't know how to set it in photoshop.

Dimension file name usage required remarks
512 × 512 iTunesArtwork Ad Hoc iTunes is optional, but it is recommended that you add a file in the PNG format, but the file name does not need to use the. PNG suffix.
57 × 57 Icon.png the App Store and Home screen of iPhone/iPod touch must be unavailable
114x114 Icon@2x.png High Resolution iPhone 4 Master screen optional, but it is recommended to add none
72X72 Icon-72.png master screen, available for iPad compatibility, but not recommended
29 × 29 Icon-Small.png Spotlight and setup app optional, but it is recommended to add none
50 × 50 Icon-Small-50.png Spotlight, recommended to be compatible with iPad if the app has a setup package. Otherwise it is optional, but we recommend that you add it. None
58x58 Icon-Small@2x.png High Resolution iPhone 4 Spotlight and setup app if app has setup package, it is recommended to add. Otherwise it is optional, but we recommend that you add it. None

MP3 clipboard. the icon is a small green scissors.

Download an mpTrim.exe (mp3 Cutting Tool): wf66.com/down/soft11/41029d1e0.htm mpTrim, formerly known as mp3Trim, which is a compact and convenient MP3 trimming and intercepting tool, the main function is to remove the unwanted parts (from the header or tail) of MP3, and only keep the essence. Its mute detection function is also very powerful, you can use this function to cut out the unnecessary mute part of an MP3 file. You can use it to fade out or fade in the audio effect of an MP3 file; you can zoom in the volume of an MP3 file with a lower volume, and change the ID tag of the MP3 file. In addition, it also has some professional functions, for example, generating CUE files, batch processing, and extracting fragments. In short, mpTrim is a very effective repairer dedicated to MP3 files.

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.