Lines Matching refs:transparent

182 static int tick_type(png_bytep p, bool transparent, const char** outError)
186 if (transparent) {
199 *outError = "Frame pixels must be either solid or transparent (not intermediate alphas)";
203 *outError = "Ticks in transparent frame must be black or red";
235 png_bytep row, int width, bool transparent, bool required,
245 if (TICK_TYPE_TICK == tick_type(row+i*4, transparent, outError)) {
284 png_bytepp rows, int offset, int height, bool transparent, bool required,
294 if (TICK_TYPE_TICK == tick_type(rows[i]+offset, transparent, outError)) {
333 png_bytep row, int width, bool transparent, bool required,
340 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(row + 4, transparent, outError)) {
346 int tick = tick_type(row + i * 4, transparent, outError);
354 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(row + (width - 2) * 4, transparent, outError)) {
360 int tick = tick_type(row+i*4, transparent, outError);
371 png_bytepp rows, int offset, int height, bool transparent, bool required,
378 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(rows[1] + offset, transparent, outError)) {
384 int tick = tick_type(rows[i] + offset, transparent, outError);
392 if (TICK_TYPE_LAYOUT_BOUNDS == tick_type(rows[height - 2] + offset, transparent, outError)) {
398 int tick = tick_type(rows[i] + offset, transparent, outError);
602 bool transparent = p[3] == 0;
618 if (!transparent &&
620 errorMsg = "Must have one-pixel frame that is either transparent or white";
625 if (get_horizontal_ticks(p, W, transparent, true, &xDivs[0],
633 if (get_vertical_ticks(image->rows, 0, H, transparent, true, &yDivs[0],
645 if (get_horizontal_ticks(image->rows[H-1], W, transparent, false, &image->info9Patch.paddingLeft,
653 if (get_vertical_ticks(image->rows, (W-1)*4, H, transparent, false, &image->info9Patch.paddingTop,
661 get_horizontal_layout_bounds_ticks(image->rows[H-1], W, transparent, false,
665 get_vertical_layout_bounds_ticks(image->rows, (W-1)*4, H, transparent, false,