JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ImageLoading.h
Go to the documentation of this file.
1
13
14#import <Foundation/Foundation.h>
15#import <UIKit/UIKit.h>
16
17NS_ASSUME_NONNULL_BEGIN
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
35UIImage *_Nullable LoadScaledPngImage(NSString *pszBaseName);
36
51UIImage *_Nullable CreateReflectedImage(UIImage *_Nullable image, int height);
52
66UIImage *_Nullable LoadScaledEncryptedTexImage(NSString *pszBaseName);
67
85NSString *_Nullable GetScaledResourcePath(NSString *pszBaseName,
86 BOOL *pfScaled,
87 float *pflScale,
88 NSString *pszExtension);
89
100NSData *_Nullable CreateResourceDataCipherKey(void);
101
102#ifdef __cplusplus
103}
104#endif
105
106NS_ASSUME_NONNULL_END
107
108// code: language=Objective-C
109// kate: hl Objective-C;
110// vim: set ft=objc :
NS_ASSUME_NONNULL_BEGIN UIImage *_Nullable LoadScaledPngImage(NSString *pszBaseName)
Loads a PNG from the bundle at the right Retina variant and tags it with the right scale.
Definition ImageLoading.m:59
UIImage *_Nullable CreateReflectedImage(UIImage *_Nullable image, int height)
Builds a vertically-flipped, gradient-faded reflection of an image.
NSString *_Nullable GetScaledResourcePath(NSString *pszBaseName, BOOL *pfScaled, float *pflScale, NSString *pszExtension)
Resolves a resource name to the bundle path of the variant this device should use.
Definition ImageLoading.m:154
UIImage *_Nullable LoadScaledEncryptedTexImage(NSString *pszBaseName)
The same job as LoadScaledPngImage, for the encrypted .tex assets.
Definition ImageLoading.m:233
NSData *_Nullable CreateResourceDataCipherKey(void)
The Blowfish key downloaded resource data is enciphered with.
Definition ImageLoading.m:264