多媒体开发计算机颜色相关知识

本文介绍了颜色模式,包括颜色模型和颜色空间的概念。RGB颜色模型作为最常见的颜色模型,被广泛应用于电视、电脑显示屏等领域。RGB模型有多种颜色空间表示,如RGB555、RGB565、RGB24和RGB32,它们在内存中的布局和表示方法各有不同。在计算机中,RGB24和RGB32是常用的显示器颜色空间,能表示1670万种颜色。
摘要由CSDN通过智能技术生成

颜色模式

颜色模型和颜色空间

简单的说就是数字世界中颜色的表示方式,即使用数学抽象出颜色的表示方式。仅仅只是一种模型。色彩空间是一个标准,它定义了一组特定的颜色。对一种颜色进行编码的方法统称为“颜色空间”或“色域”。

英文是这样描述的:

Color Models and Color Spaces
The human eye apprehends color as light in a fairly narrow band of the electromagnetic spectrum. The biology of the eye makes it particularly receptive to red, blue, and green light. Humans can visualize a broad range of colors through mixtures of these three primary colors.
A color model is a geometric or mathematical framework that attempts to describe the colors we see. It uses numerical values pinned to dimensions of the model to represent the visible spectrum of color. A color model gives us a method for describing, classifying, comparing, and ordering colors.
A color space is a practical adaptation of a color model that specifies a gamut of colors that can be ?produced using that model. The color model determines the relationship between values, and the color space defines the absolute meaning of those values as colors. These values, called components, are in most instances floating-point values between 0.0 and 1.0.

计算机中的颜色格式

常见的颜色有 8位16位 24位32位色,其中24位及以上称为真彩,是PC上最常用的颜色,其他基本用于嵌入式系统或一些工控领域,详情可查阅一下表格:

Bit-深度 最大色彩
1 2(monochrome)
2 4(CGA)
4 16(EGA)
8 256(VGA)
16 65536(XGA)
24 16777216(True Color/真彩色,SVGA)
32 16777216(True Color+Alpha Channel/控制透明度,-游戏特效)

Bit-深度也代表了每个像素点所占用计算机的位数。

常用的颜色模型分类

RGB颜色模型

介绍

它是一种色光表色模式。现在已成为了工业界的一种颜色标准,

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值