root/as3/PSDParser/src/com/voidelement/images/psd/resources/PrintFlags.as

リビジョン 97, 2.5 kB (コミッタ: munegon, コミット時期: 5 年 前)

--

Line 
1 /**
2  * com.voidelement.images.psd.PSDParser  Class for ActionScript 3.0
3  * 
4  * @author       Copyright (c) 2007 munegon
5  * @version      0.2
6  * 
7  * @link         http://www.voidelement.com/
8  * @link         http://void.heteml.jp/blog/
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  * 
14  * http://www.apache.org/licenses/LICENSE-2.0
15  * 
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
19  * either express or implied. See the License for the specific language
20  * governing permissions and limitations under the License.
21  */
22
23
24 package com.voidelement.images.psd.resources {
25         import com.voidelement.images.psd.PSDParser;
26        
27         import flash.utils.ByteArray;
28        
29         public class PrintFlags {
30                 private var _labels:int;
31                 public function get labels():int { return _labels; }
32                
33                 private var _crop:int;
34                 public function get crop():int { return _crop; }
35                
36                 private var _colorBars:int;
37                 public function get colorBars():int { return _colorBars; }
38                
39                 private var _registration:int;
40                 public function get registration():int { return _registration; }
41                
42                 private var _negative:int;
43                 public function get negative():int { return _negative; }
44                
45                 private var _flip:int;
46                 public function get flip():int { return _flip; }
47                
48                 private var _interpolate:int;
49                 public function get interpolate():int { return _interpolate; }
50                
51                 private var _caption:int;
52                 public function get caption():int { return _caption; }
53                
54                
55                 public function PrintFlags( stream:ByteArray ) {
56                         _labels = stream.readUnsignedByte();
57                         _crop = stream.readUnsignedByte();
58                         _colorBars = stream.readUnsignedByte();
59                         _registration = stream.readUnsignedByte();
60                         _negative = stream.readUnsignedByte();
61                         _flip = stream.readUnsignedByte();
62                         _interpolate = stream.readUnsignedByte();
63                         _caption = stream.readUnsignedByte();
64                         stream.readUnsignedByte();
65                        
66                         PSDParser.log("  labels: " + labels );
67                         PSDParser.log("  crop: " + crop );
68                         PSDParser.log("  colorBars: " + colorBars );
69                         PSDParser.log("  registration: " + registration );
70                         PSDParser.log("  negative: " + negative );
71                         PSDParser.log("  flip: " + flip );
72                         PSDParser.log("  interpolate: " + interpolate );
73                         PSDParser.log("  caption: " + caption );
74                 }
75         }
76 }
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。