Go to the source code of this file.
function CPAppKitImage |
( |
aFilename |
, |
|
|
aSize |
|
|
) |
| |
function CPImageInBundle |
( |
| ) |
|
Returns a resource image with a relative path and size in a bundle.
- Parameters
-
filename | A filename or relative path to a resource image. |
width | Width of the image. May be omitted. |
height | Height of the image. May be omitted if width is omitted. |
size | Instead of passing width/height, a CGSize may be passed. |
bundle | Bundle in which the image resource can be found. If omitted, defaults to the main bundle. |
- Returns
- CPImage
Definition at line 72 of file CPImage.j.
var CPImageCSSAfterDictionaryKey = @"@"CPImageCSSAfterDictionaryKey" |
var CPImageCSSBeforeDictionaryKey = @"@"CPImageCSSBeforeDictionaryKey" |
var CPImageCSSDictionaryKey = @"@"CPImageCSSDictionaryKey" |
var CPImageDelegate_imageDidAbort_ = 1 << 3 |
var CPImageDelegate_imageDidError_ = 1 << 2 |
var CPImageDelegate_imageDidLoad_ = 1 << 1 |
CPImageDidLoadNotification = @"@"CPImageDidLoadNotification" |
CPImageLoadStatusCancelled = 3 |
CPImageLoadStatusCompleted = 2 |
CPImageLoadStatusInitialized = 0 |
CPImageLoadStatusInvalidData = 4 |
CPImageLoadStatusLoading = 1 |
CPImageLoadStatusReadError = 6 |
CPImageLoadStatusUnexpectedEOF = 5 |
CPImageNameColorPanel = @"@"CPImageNameColorPanel" |
CPImageNameColorPanelHighlighted = @"@"CPImageNameColorPanelHighlighted" |
var CPNinePartImageImageSlicesKey = @"@"CPNinePartImageImageSlicesKey" |
var CPThreePartImageImageSlicesKey = @"@"CPThreePartImageImageSlicesKey" |
var CPThreePartImageIsVerticalKey = @"@"CPThreePartImageIsVerticalKey" |
var ImageDescriptionFormat = "%s {\n filename: \"%s\",\n size: { width:%f, height:%f }\n}" |