ColorSpace.Model
public
static
final
enum
ColorSpace.Model
extends Enum<ColorSpace.Model>
| java.lang.Object | ||
| ↳ | java.lang.Enum<android.graphics.ColorSpace.Model> | |
| ↳ | android.graphics.ColorSpace.Model | |
A color model is required by a ColorSpace to describe the
way colors can be represented as tuples of numbers. A common color
model is the RGB color model which defines a color
as represented by a tuple of 3 numbers (red, green and blue).
Summary
Enum values | |
|---|---|
ColorSpace.Model |
CMYK
The CMYK model is a color model with 4 components that refer to four inks used in color printing: cyan, magenta, yellow and black (or key). |
ColorSpace.Model |
LAB
The Lab model is a color model with 3 components used to describe a color space that is more perceptually uniform than XYZ. |
ColorSpace.Model |
RGB
The RGB model is a color model with 3 components that refer to the three additive primiaries: red, green andd blue. |
ColorSpace.Model |
XYZ
The XYZ model is a color model with 3 components that are used to model human color vision on a basic sensory level. |
Public methods | |
|---|---|
int
|
getComponentCount()
Returns the number of components for this color model. |
static
ColorSpace.Model
|
valueOf(String name)
|
static
final
Model[]
|
values()
|
Inherited methods | |
|---|---|
java.lang.Enum
| |
java.lang.Object
| |
java.lang.Comparable
| |
Enum values
CMYK
ColorSpace.Model CMYK
The CMYK model is a color model with 4 components that refer to four inks used in color printing: cyan, magenta, yellow and black (or key). CMYK is a subtractive color model.
LAB
ColorSpace.Model LAB
The Lab model is a color model with 3 components used to describe a color space that is more perceptually uniform than XYZ.
RGB
ColorSpace.Model RGB
The RGB model is a color model with 3 components that refer to the three additive primiaries: red, green andd blue.
XYZ
ColorSpace.Model XYZ
The XYZ model is a color model with 3 components that are used to model human color vision on a basic sensory level.
Public methods
getComponentCount
int getComponentCount ()
Returns the number of components for this color model.
| Returns | |
|---|---|
int |
An integer between 1 and 4
Value is between 1 and 4 inclusive. |
Interfaces
Classes
- Bitmap
- BitmapFactory
- BitmapFactory.Options
- BitmapRegionDecoder
- BitmapShader
- BlurMaskFilter
- Camera
- Canvas
- Color
- ColorFilter
- ColorMatrix
- ColorMatrixColorFilter
- ColorSpace
- ColorSpace.Connector
- ColorSpace.Rgb
- ColorSpace.Rgb.TransferParameters
- ComposePathEffect
- ComposeShader
- CornerPathEffect
- DashPathEffect
- DiscretePathEffect
- DrawFilter
- EmbossMaskFilter
- ImageFormat
- Interpolator
- LightingColorFilter
- LinearGradient
- MaskFilter
- Matrix
- Movie
- NinePatch
- Outline
- Paint
- Paint.FontMetrics
- Paint.FontMetricsInt
- PaintFlagsDrawFilter
- Path
- PathDashPathEffect
- PathEffect
- PathMeasure
- Picture
- PixelFormat
- Point
- PointF
- PorterDuff
- PorterDuffColorFilter
- PorterDuffXfermode
- RadialGradient
- Rect
- RectF
- Region
- RegionIterator
- Shader
- SumPathEffect
- SurfaceTexture
- SweepGradient
- Typeface
- Typeface.Builder
- Xfermode
- YuvImage
Enums
- Bitmap.CompressFormat
- Bitmap.Config
- BlurMaskFilter.Blur
- Canvas.EdgeType
- Canvas.VertexMode
- ColorSpace.Adaptation
- ColorSpace.Model
- ColorSpace.Named
- ColorSpace.RenderIntent
- Interpolator.Result
- Matrix.ScaleToFit
- Paint.Align
- Paint.Cap
- Paint.Join
- Paint.Style
- Path.Direction
- Path.FillType
- Path.Op
- PathDashPathEffect.Style
- PorterDuff.Mode
- Region.Op
- Shader.TileMode
Exceptions