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…') |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
}} | }} | ||
'''MobileIcons''' is a C framework that themes {{fwlink| | '''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); | |||
CGImageRef appIcon = LICreateIconForBundle(CFSTR("com.apple.mobilesafari")); // obtain icon of safari | |||
</source> | |||
== Variants == | |||
As of 4.3, MobileIcons support 27 variants (styles). | |||
{| class="wikitable" | |||
|- | |||
! 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 || colspan="2" | 29×29 || DefaultSmallAppIcon.png || | |||
|- | |||
| 3 || colspan="2" | 50×50 || DefaultSmallAppIcon-72.png || | |||
|- | |||
| 4 || colspan="2" | 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 || colspan="2" | 58×58 || DefaultSmallAppIcon@2x.png || | |||
|- | |||
| 17 || colspan="2" | 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 || colspan="2" | 44×45 || DefaultAppIcon.png || | |||
|- | |||
| 23 || colspan="2" | 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) | |||
|} | |||
[[Image:MobileIcons.png|830px|center|thumb|Gallery of variants supported by MobileIcons.]] | |||
== References == | |||
* Header: https://github.com/karimhm/iOS-C-Private-Frameworks/blob/master/MobileIcons/MobileIcons.h | |||
{{Navbox Frameworks}} | {{Navbox Frameworks}} |
Latest revision as of 07:14, 3 June 2016
MobileIcons.framework | |
Private Framework | |
---|---|
Availabile | 3.2 – present |
Class Prefix | LI |
Headers | [headers.cynder.me] |
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);
CGImageRef appIcon = LICreateIconForBundle(CFSTR("com.apple.mobilesafari")); // obtain icon of safari
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) |
Error creating thumbnail: File missing
References