PSImage Class Reference
Inherits from | NSObject |
Declared in | PSImage.h |
Tasks
Creating an Image
-
+ imageNamed:ofType:
Creates and returns an image containing image data
-
+ imageOfType:
Creates and returns an empty image
Access and modify image
-
– type
Returns the image type
-
– setImage:forResolution:
Sets image data for the image
-
– image:
Get image data of the image
Class Methods
imageNamed:ofType:
Creates and returns an image containing image data
+ (PSImage *)imageNamed:(NSString *)name ofType:(PSImageType)type
Parameters
- name
The name of the file. The methods looks for name.png and name@2x.png in the application’s main bundle.
- type
Type of the image
Return Value
A PSImage with contents of name.png and name@2x.png if available
Discussion
Creates and returns an image containing image data
Declared In
PSImage.h
Instance Methods
image:
Get image data of the image
- (UIImage *)image:(PSImageResolution)resolution
Parameters
- resolution
Image resolution
Return Value
UIImage if image data for resolution is available, nil otherwise
Discussion
Get image data of the image
Declared In
PSImage.h