Lines Matching defs:alpha
367 // V3+ bmp files introduce an alpha mask and allow the creator of the image
368 // to use the alpha channels. However, many of these images leave the
369 // alpha channel blank and expect to be rendered as opaque. This is the
370 // case for almost all V3 images, so we ignore the alpha mask. For V4+
371 // images in kMask mode, we will use the alpha mask. Additionally, V3
372 // bmp-in-ico expect us to use the alpha mask.
374 // skbug.com/4116: We should perhaps also apply the alpha mask in kStandard
381 inputMasks.alpha = get_int(iBuffer.get(), 48);
435 // alpha as kBinary if the BMP is contained in an ICO.
437 SkEncodedInfo::Alpha alpha = inIco ? SkEncodedInfo::kBinary_Alpha :
466 // 32-bit BMP-in-ICOs actually use the alpha channel in place of a
470 alpha = SkEncodedInfo::kUnpremul_Alpha;
487 auto info = SkEncodedInfo::Make(width, height, color, alpha, bitsPerComponent);
538 SkEncodedInfo::Alpha alpha;
541 alpha = SkEncodedInfo::kUnpremul_Alpha;
544 alpha = SkEncodedInfo::kOpaque_Alpha;
546 auto info = SkEncodedInfo::Make(width, height, color, alpha, 8);