救命!需要制作我自己的颜色...... [英] Help! Need to make my own color...

查看:56
本文介绍了救命!需要制作我自己的颜色......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我家里有3个编译器:MSVC ++,DEV-C ++和Turbo C ++ 3.0。


我想知道如何通过指定RGB来制作我选择的颜色

值。也许MSVC ++,Dev-C ++有他们自己的库。

嗯,我想听到这个...


我也很友好知识寻求者。我想知道如何通过指定

RGB值来实际制作程序以创建您选择的颜色。我使用turbo c ++图形工作了很多。如果有人在这里知道如何帮助我,那将会很棒。

解决方案

arun写道:

我家里有3个编译器:MSVC ++,DEV-C ++和Turbo C ++ 3.0。

我想知道如何通过指定<我选择的颜色br /> RGB值。也许MSVC ++,Dev-C ++有自己的库来做
。好吧,我想听听那个......

我也是一个知识寻求者。我想知道如何通过指定
RGB值来实际制作程序来创建您选择的颜色。我使用turbo c ++图形工作了很多。如果有人在这里知道如何帮助我,那就太棒了。




颜色!


想你最好在新闻组询问你会得到答案 - 大概是和b $ b一样,与Windows编程有关吗? microsoft.public.win32.programmer.gdi

或许?


-

========= =====

*不是学究者*

==============


"阿伦" <德******* @ gmail.com>在消息中写道

news:11 ********************** @ g44g2000cwa.googlegr oups.com ...

我家里有3个编译器:MSVC ++,DEV-C ++和Turbo C ++ 3.0。

我想知道如何通过指定RGB来制作我选择的颜色
值。


C语言没有''color''或''screen''

或任何其他特定硬件设备的概念。

也许MSVC ++,Dev-C ++有自己的库来实现。


在这三个实现中,我只熟悉Microsoft

Visual C ++。是的,它带有广泛的库

用于执行许多特定于平台的事情,例如视频图形

颜色,字体等。

好吧,我想听听...


请参阅VC ++文档。查找''RGB'',''color''等。

也不要忘记MSDN( www.mdsn.microsoft.com),其中几乎所有开发人员产品的文档都可用,还有

有更多有用的信息(代码示例),bug解决方法,



我也是一个知识寻求者。


很棒。所以你在看书吗?

我想知道如何通过指定
RGB值来实际制作程序来创建你选择的颜色。


简单地说,RTFM。

我使用turbo c ++图形工作很多。如果有人在这里知道如何帮助我,那就太棒了。




见上文。


- Mike




" arun" <德******* @ gmail.com>写了


我家里有3个编译器:MSVC ++,DEV-C ++和Turbo C ++ 3.0。

我想知道如何制作一个颜色我通过指定RGB
值来选择。也许MSVC ++,Dev-C ++有自己的库。
好吧,我想听听那个......

我也是一个知识寻求者。我想知道如何通过指定
RGB值来实际制作程序来创建您选择的颜色。我使用turbo c ++图形工作了很多。如果有人在这里知道如何帮助我,那就太棒了。



图像基本上就是这个


结构颜色

{

unsigned char red;

unsigned char green;

unsigned char blue;

};


struct image

{

int width;

int height;

结构颜色*像素;

}


现在,您可以以完全可移植的方式处理这些数据。比如你

可以编写一个例程来将全彩色图像转换成黑白,通过

将所有像素改为平均灰度值。


要查看它,您需要以图像格式保存它。查找wotsit .org获取您最喜欢的图片格式

。 (选择一个简单的,而不是GIF或JPEG,用于

首次尝试)。


I have 3 compilers at home: MSVC++, DEV-C++, and Turbo C++ 3.0.

I would like to know how to make a color of my choice by specifying RGB
values. Perhaps MSVC++, Dev- C++ have their own libraries to do so.
Well, I would like to hear of that...

I am also kind of a knowledge seeker. I would like to know how to
actually make programs to create a color of your choice by specifying
RGB values. I work a lot with turbo c++ graphics. If anyone here knows
how to help me, it would be great.

解决方案

arun wrote:

I have 3 compilers at home: MSVC++, DEV-C++, and Turbo C++ 3.0.

I would like to know how to make a color of my choice by specifying
RGB values. Perhaps MSVC++, Dev- C++ have their own libraries to do
so. Well, I would like to hear of that...

I am also kind of a knowledge seeker. I would like to know how to
actually make programs to create a color of your choice by specifying
RGB values. I work a lot with turbo c++ graphics. If anyone here knows
how to help me, it would be great.



Colors!

Think you''d best ask on a newsgroup where you''ll get an answer - presumably
one to do with Windows programming? microsoft.public.win32.programmer.gdi
perhaps?

--
==============
*Not a pedant*
==============


"arun" <de*******@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...

I have 3 compilers at home: MSVC++, DEV-C++, and Turbo C++ 3.0.

I would like to know how to make a color of my choice by specifying RGB
values.
The C language has no notion of ''color'' or ''screen''
or any other particular hardware device.
Perhaps MSVC++, Dev- C++ have their own libraries to do so.
Of those three implementations, I''m only familiar with Microsoft
Visual C++. And yes, it does come with extensive libraries
for doing many platform-specific things, such as video graphics
with colors, fonts, etc.
Well, I would like to hear of that...
See your VC++ documentation. Look up ''RGB'', ''color'', etc.
Also don''t forget MSDN (www.mdsn.microsoft.com), where virtually
all the documentation for developer products is available, also
with much more useful information (code samples), bug workarounds,
etc.
I am also kind of a knowledge seeker.
Great. So are you reading books?
I would like to know how to
actually make programs to create a color of your choice by specifying
RGB values.
Simply put, RTFM.
I work a lot with turbo c++ graphics. If anyone here knows
how to help me, it would be great.



See above.

-Mike



"arun" <de*******@gmail.com> wrote


I have 3 compilers at home: MSVC++, DEV-C++, and Turbo C++ 3.0.

I would like to know how to make a color of my choice by specifying RGB
values. Perhaps MSVC++, Dev- C++ have their own libraries to do so.
Well, I would like to hear of that...

I am also kind of a knowledge seeker. I would like to know how to
actually make programs to create a color of your choice by specifying
RGB values. I work a lot with turbo c++ graphics. If anyone here knows
how to help me, it would be great.


An image is basically this

struct colour
{
unsigned char red;
unsigned char green;
unsigned char blue;
};

struct image
{
int width;
int height;
struct colour *pixels;
}

Now you can manipulate this data in a totally portable way. For instance you
could write a routine to turn a full-colour image to black and white, by
changing all the pixels to an average value of grey.

To view it, you need to save it in an image format. Look up wotsit .org for
your favourite image format. (Choose a simple one, not GIF or JPEG, for a
first attempt).


这篇关于救命!需要制作我自己的颜色......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆