Home | History | Annotate | Download | only in aapt

Lines Matching refs:transparent

151 static int tick_type(png_bytep p, bool transparent, const char** outError)
155 if (transparent) {
168 *outError = "Frame pixels must be either solid or transparent (not intermediate alphas)";
172 *outError = "Ticks in transparent frame must be black or red";
204 png_bytep row, int width, bool transparent, bool required,
214 if (TICK_TYPE_TICK == tick_type(row+i*4, transparent, outError)) {
253 png_bytepp rows, int offset, int height, bool transparent, bool required,
263 if (TICK_TYPE_TICK == tick_type(rows[i]+offset, transparent, outError)) {
302 png_bytep row, int width, bool transparent, bool required,
309 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(row + 4, transparent, outError)) {
315 int tick = tick_type(row + i * 4, transparent, outError);
323 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(row + (width - 2) * 4, transparent, outError)) {
329 int tick = tick_type(row+i*4, transparent, outError);
340 png_bytepp rows, int offset, int height, bool transparent, bool required,
347 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(rows[1] + offset, transparent, outError)) {
353 int tick = tick_type(rows[i] + offset, transparent, outError);
361 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(rows[height - 2] + offset, transparent, outError)) {
367 int tick = tick_type(rows[i] + offset, transparent, outError);
473 bool transparent = p[3] == 0;
489 if (!transparent &&
491 errorMsg = "Must have one-pixel frame that is either transparent or white";
496 if (get_horizontal_ticks(p, W, transparent, true, &xDivs[0],
504 if (get_vertical_ticks(image->rows, 0, H, transparent, true, &yDivs[0],
512 if (get_horizontal_ticks(image->rows[H-1], W, transparent, false, &image->info9Patch.paddingLeft,
520 if (get_vertical_ticks(image->rows, (W-1)*4, H, transparent, false, &image->info9Patch.paddingTop,
528 get_horizontal_layout_bounds_ticks(image->rows[H-1], W, transparent, false,
532 get_vertical_layout_bounds_ticks(image->rows, (W-1)*4, H, transparent, false,