Skia
2D Graphics Library
SkAlphaType.h
Go to the documentation of this file.
1 /*
2  * Copyright 2022 Google LLC
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef SkAlphaType_DEFINED
9 #define SkAlphaType_DEFINED
10 
26 enum SkAlphaType : int {
32 };
33 
41 static inline bool SkAlphaTypeIsOpaque(SkAlphaType at) {
42  return kOpaque_SkAlphaType == at;
43 }
44 
45 #endif
static bool SkAlphaTypeIsOpaque(SkAlphaType at)
Returns true if SkAlphaType equals kOpaque_SkAlphaType.
Definition: SkAlphaType.h:41
SkAlphaType
Describes how to interpret the alpha component of a pixel.
Definition: SkAlphaType.h:26
@ kUnknown_SkAlphaType
uninitialized
Definition: SkAlphaType.h:27
@ kOpaque_SkAlphaType
pixel is opaque
Definition: SkAlphaType.h:28
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
Definition: SkAlphaType.h:29
@ kUnpremul_SkAlphaType
pixel components are independent of alpha
Definition: SkAlphaType.h:30
@ kLastEnum_SkAlphaType
last valid value
Definition: SkAlphaType.h:31