LSR Image Stack Layer
A layer in an image stack.
Extension
.imagestacklayer
Folder Contents
A Contents.json
file and an image set for the layer.
Contents.json File
Metadata and optional size and centering information for the layer (Table 34-1).
Key |
Type |
Description |
---|---|---|
|
Dictionary |
Metadata for the author and format version of the image stack layer. |
|
String |
Use your bundle ID.
LSR files generated by Xcode use |
|
Number |
The format version of the LSR file. Use |
|
Dictionary |
Properties for an image stack layer. |
|
Dictionary |
The size for the image stack layer. Defaults to the size of the image stack canvas if the tag is not included. |
|
Number |
The width of the image stack layer in pixels. |
|
Number |
The height of the image stack layer in pixels. |
|
Dictionary |
The position of the center of the image stack layer image on the image stack canvas. Defaults to the center of the image stack canvas if the tag is not included. The coordinate is in pixels from the top-left edge of the image stack canvas. |
|
Number |
The horizontal position of the center of the image stack layer. |
|
Number |
The vertical position of the image stack layer. |
Sample Contents.json Files
Simple Image Stack Layer
{
"info" : {
"author" : "com.developerName",
"version" : 1
},
}
Image Stack Layer with Size and Center
{
"info" : {
"author" : "com.developerName",
"version" : 1
},
"properties" : {
"frame-size : {
"width" : 364,
"height" : 548
},
"frame-center : {
"x" : 1500,
"y" : 700
}
}
}
Copyright © 2018 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2018-04-09