Difference between revisions of "MobileIcons.framework"

From iPhone Development Wiki
Jump to: navigation, search
m (Created page with '{{infobox Framework | vis = Private | since = 3.2 | classID = LI }} '''MobileIcons''' is a C framework that themes {{fwlink|CoreGraphic}} images by icon styles. {{Navbox Framew…')
 
Line 5: Line 5:
 
}}
 
}}
  
'''MobileIcons''' is a C framework that themes {{fwlink|CoreGraphic}} images by icon styles.
+
'''MobileIcons''' is a C framework that themes {{fwlink|CoreGraphics}} images by icon styles.
 +
 
 +
== Usage ==
 +
 
 +
<source lang="c">
 +
CGImageRef image = ...; // obtain the source image
 +
CGImageRef themedImage = LICreateIconForImage(image, /* variant */ 2, /* precomposed */ 0);
 +
</source>
 +
 
 +
== Variants ==
 +
 
 +
As of 4.3, MobileIcons support 27 variants (styles).
 +
{| class="wikitable"
 +
|-
 +
! Variant !! Input size !! Output size !! Default input image !! Description
 +
|-
 +
| 0 || 57&times;57 || 59&times;(60+s) || DefaultAppIcon.png || The large icon in home screen (iPhone)
 +
|-
 +
| 1 || 72&times;72 || 74&times;(76+s) || DefaultAppIcon-72.png || The large icon in home screen (iPad)
 +
|-
 +
| 2 || colspan="2" | 29&times;29 || DefaultSmallAppIcon.png ||
 +
|-
 +
| 3 || colspan="2" | 50&times;50 || DefaultSmallAppIcon-72.png ||
 +
|-
 +
| 4 || colspan="2" | 29&times;29 || DefaultSmallAppIcon.png ||
 +
|-
 +
| 5 || 44&times;59 || 64&times;64 ||  ||
 +
|-
 +
| 6 || 220&times;295 || 320&times;320 ||  ||
 +
|-
 +
| 7 || 72&times;72 || 64&times;64 || DefaultAppIcon.png ||
 +
|-
 +
| 8 || 72&times;72 || 320&times;320 || DefaultAppIcon.png ||
 +
|-
 +
| 9 || 14&times;14 || 16&times;16 || DefaultAppIcon.png ||
 +
|-
 +
| 10 || 15&times;15 || 32&times;32 || DefaultAppIcon.png ||
 +
|-
 +
| 11 || 30&times;3 || 48&times;48 || DefaultAppIcon.png ||
 +
|-
 +
| 12 || 61&times;61 || 128&times;128 || DefaultAppIcon.png ||
 +
|-
 +
| 13 || 122&times;122 ||  256&times;256 || DefaultAppIcon.png ||
 +
|-
 +
| 14 || 243&times;243 ||  512&times;512 || DefaultAppIcon.png ||
 +
|-
 +
| 15 || 114&times;114 || 118&times;(120+2s) || DefaultAppIcon@2x.png || The large icon in home screen (iPhone 2x)
 +
|-
 +
| 16 || colspan="2" | 58&times;58 || DefaultSmallAppIcon@2x.png ||
 +
|-
 +
| 17 || colspan="2" | 58&times;58 || DefaultSmallAppIcon@2x.png ||
 +
|-
 +
| 18 || 22&times;29 || 31&times;37 || ||
 +
|-
 +
| 19 || 44&times;58 || 62&times;74 ||  ||
 +
|-
 +
| 20 || 22&times;29 || 31&times;37 || DefaultAppIcon.png ||
 +
|-
 +
| 21 || 44&times;58 || 62&times;74 || DefaultAppIcon.png ||
 +
|-
 +
| 22 || colspan="2" | 44&times;45 || DefaultAppIcon.png ||
 +
|-
 +
| 23 || colspan="2" | 86&times;87 || DefaultAppIcon.png ||
 +
|-
 +
| 24 || 57&times;57 || 59&times;(60+s) || DefaultAppIcon.png || The large icon in home screen in grayscale (iPhone)
 +
|-
 +
| 25 || 114&times;114 || 118&times;(120+2s) || DefaultAppIcon@2x.png || The large icon in home screen in grayscale (iPhone 2x)
 +
|-
 +
| 26 || 72&times;72 || 74&times;(76+s) || DefaultAppIcon-72.png || The large icon in home screen in grayscale (iPad)
 +
|}
 +
 
 +
 
  
 
{{Navbox Frameworks}}
 
{{Navbox Frameworks}}

Revision as of 23:01, 8 April 2011

MobileIcons.framework
Private Framework
Availabile 3.2 – present
Class Prefix LI


MobileIcons is a C framework that themes CoreGraphics images by icon styles.

Usage

CGImageRef image = ...; // obtain the source image
CGImageRef themedImage = LICreateIconForImage(image, /* variant */ 2, /* precomposed */ 0);

Variants

As of 4.3, MobileIcons support 27 variants (styles).

Variant Input size Output size Default input image Description
0 57×57 59×(60+s) DefaultAppIcon.png The large icon in home screen (iPhone)
1 72×72 74×(76+s) DefaultAppIcon-72.png The large icon in home screen (iPad)
2 29×29 DefaultSmallAppIcon.png
3 50×50 DefaultSmallAppIcon-72.png
4 29×29 DefaultSmallAppIcon.png
5 44×59 64×64
6 220×295 320×320
7 72×72 64×64 DefaultAppIcon.png
8 72×72 320×320 DefaultAppIcon.png
9 14×14 16×16 DefaultAppIcon.png
10 15×15 32×32 DefaultAppIcon.png
11 30×3 48×48 DefaultAppIcon.png
12 61×61 128×128 DefaultAppIcon.png
13 122×122 256×256 DefaultAppIcon.png
14 243×243 512×512 DefaultAppIcon.png
15 114×114 118×(120+2s) DefaultAppIcon@2x.png The large icon in home screen (iPhone 2x)
16 58×58 DefaultSmallAppIcon@2x.png
17 58×58 DefaultSmallAppIcon@2x.png
18 22×29 31×37
19 44×58 62×74
20 22×29 31×37 DefaultAppIcon.png
21 44×58 62×74 DefaultAppIcon.png
22 44×45 DefaultAppIcon.png
23 86×87 DefaultAppIcon.png
24 57×57 59×(60+s) DefaultAppIcon.png The large icon in home screen in grayscale (iPhone)
25 114×114 118×(120+2s) DefaultAppIcon@2x.png The large icon in home screen in grayscale (iPhone 2x)
26 72×72 74×(76+s) DefaultAppIcon-72.png The large icon in home screen in grayscale (iPad)