Rev 6733 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6733 | Rev 6881 | ||
---|---|---|---|
Line 133... | Line 133... | ||
133 | 133 | ||
Line 134... | Line 134... | ||
134 | sig_bit png_color_8 ; significant bits in color channels |
134 | sig_bit png_color_8 ; significant bits in color channels |
135 | end if |
135 | end if |
Line 136... | Line 136... | ||
136 | 136 | ||
137 | ;#if defined(PNG_tRNS_SUPPORTED) || defined(PNG_READ_EXPAND_SUPPORTED) || \ |
- | |
138 | ;defined(PNG_READ_BACKGROUND_SUPPORTED) |
137 | if (PNG_tRNS_SUPPORTED eq 1) | (PNG_READ_EXPAND_SUPPORTED eq 1) | (PNG_READ_BACKGROUND_SUPPORTED eq 1) |
139 | ; The tRNS chunk supplies transparency data for paletted images and |
138 | ; The tRNS chunk supplies transparency data for paletted images and |
140 | ; other image types that don't need a full alpha channel. There are |
139 | ; other image types that don't need a full alpha channel. There are |
141 | ; "num_trans" transparency values for a paletted image, stored in the |
140 | ; "num_trans" transparency values for a paletted image, stored in the |
142 | ; same order as the palette colors, starting from index 0. Values |
141 | ; same order as the palette colors, starting from index 0. Values |
Line 146... | Line 145... | ||
146 | ; Data is valid if (valid & PNG_INFO_tRNS) is non-zero. |
145 | ; Data is valid if (valid & PNG_INFO_tRNS) is non-zero. |
147 | 146 | ||
Line 148... | Line 147... | ||
148 | trans_alpha dd ? ;bytep ; alpha values for paletted image |
147 | trans_alpha dd ? ;bytep ; alpha values for paletted image |
149 | trans_color png_color_16 ;transparent color for non-palette image |
148 | trans_color png_color_16 ;transparent color for non-palette image |
150 | ;end if |
149 | end if |
Line 151... | Line 150... | ||
151 | 150 | ||
152 | if (PNG_bKGD_SUPPORTED eq 1) | (PNG_READ_BACKGROUND_SUPPORTED eq 1) |
151 | if (PNG_bKGD_SUPPORTED eq 1) | (PNG_READ_BACKGROUND_SUPPORTED eq 1) |
153 | ; The bKGD chunk gives the suggested image background color if the |
152 | ; The bKGD chunk gives the suggested image background color if the |
154 | ; display program does not have its own background color and the image |
153 | ; display program does not have its own background color and the image |