• projdbt
    了解作者
  • C++ Builder
    开发工具
  • 41KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 0
    下载次数
  • 2018-11-27 06:46
    上传日期
VC6 Advanced Programming Example Chapter 5 Graphics Processing
9301156.rar
  • 画刷
  • GdiSample
  • res
  • GdiSample.rc2
    401B
  • GdiSample.ico
    1.1KB
  • GdiSampleDoc.ico
    1.1KB
  • Toolbar.bmp
    1.1KB
  • BrushDlg.cpp
    2KB
  • StdAfx.cpp
    211B
  • resource.h
    1KB
  • GdiSampleDoc.h
    1.5KB
  • PenDlg.cpp
    1.6KB
  • GdiSample.rc
    14.9KB
  • GdiSample.dsw
    541B
  • MainFrm.h
    1.5KB
  • GdiSample.h
    1.2KB
  • GdiSampleDoc.cpp
    1.8KB
  • GdiSampleView.h
    2.1KB
  • StdAfx.h
    1KB
  • BrushDlg.h
    1.4KB
  • MainFrm.cpp
    2.5KB
  • GdiSample.dsp
    4.8KB
  • PenDlg.h
    1.2KB
  • GdiSample.clw
    3.5KB
  • GdiSampleView.cpp
    5.8KB
  • GdiSample.cpp
    4KB
  • 颜色
  • ColorApp
  • res
  • ColorApp.ico
    3.6KB
  • ColorApp.rc2
    400B
  • Color.h
    13.8KB
  • Color.cpp
    12.5KB
  • ColorApp.dsw
    541B
  • StdAfx.cpp
    210B
  • resource.h
    913B
  • ColorApp.h
    1.3KB
  • StdAfx.h
    1020B
  • ColorApp.dsp
    5.4KB
  • ColorDlg.h
    1.7KB
  • ColorDlg.cpp
    8.3KB
  • ColorApp.clw
    1KB
  • ColorApp.rc
    6KB
  • ColorApp.cpp
    2.2KB
  • 字体
  • FontSample
  • res
  • FontSample.rc2
    402B
  • Toolbar.bmp
    1.1KB
  • FontSample.ico
    1.1KB
  • FontSampleDoc.ico
    1.1KB
  • FontSample.dsw
    543B
  • StdAfx.cpp
    212B
  • FontSample.h
    1.4KB
  • resource.h
    644B
  • FontSampleDoc.h
    1.5KB
  • FontSample.rc
    11.5KB
  • MainFrm.h
    1.5KB
  • FontSampleView.cpp
    4.5KB
  • StdAfx.h
    1KB
  • FontSample.dsp
    4.5KB
  • FontSampleDoc.cpp
    1.8KB
  • MainFrm.cpp
    2.5KB
  • FontSample.cpp
    4.2KB
  • FontSample.clw
    2.3KB
  • FontSampleView.h
    1.8KB
  • 画笔
  • GdiSample
  • res
  • GdiSample.rc2
    401B
  • GdiSample.ico
    1.1KB
  • GdiSampleDoc.ico
    1.1KB
  • Toolbar.bmp
    1.1KB
  • BrushDlg.cpp
    2KB
  • StdAfx.cpp
    211B
  • resource.h
    1KB
  • GdiSampleDoc.h
    1.5KB
  • PenDlg.cpp
    1.6KB
  • GdiSample.rc
    14.9KB
  • GdiSample.dsw
    541B
  • MainFrm.h
    1.5KB
  • GdiSample.h
    1.2KB
  • GdiSampleDoc.cpp
    1.8KB
  • GdiSampleView.h
    2.1KB
  • StdAfx.h
    1KB
  • BrushDlg.h
    1.4KB
  • MainFrm.cpp
    2.5KB
  • GdiSample.dsp
    4.8KB
  • PenDlg.h
    1.2KB
  • GdiSample.clw
    3.5KB
  • GdiSampleView.cpp
    5.8KB
  • GdiSample.cpp
    4KB
  • j位图
  • bmpdemo
  • res
  • BmpDemo.ico
    1.1KB
  • bmpdlg.rc
    633B
  • BmpDemo.rc2
    421B
  • BmpDemoDoc.ico
    1.1KB
  • Toolbar.bmp
    1.1KB
内容介绍
/****************************************************************************\ Datei : Color.cpp Projekt: Farbverwaltung Inhalt : CColor Implementierung Datum : 10.01.1999 Autor : Christian Rodemeyer Hinweis: � 1999 by Christian Rodemeyer Info �ber HLS Konvertierungsfunktion - Foley and Van Dam: "Fundamentals of Interactive Computer Graphics" - MSDN: 'HLS Color Spaces' - MSDN: 'Converting Colors Between RGB and HLS' \****************************************************************************/ #include "StdAfx.h" #include "Color.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif /****************************************************************************\ CColor: Implementierung \****************************************************************************/ const CColor::DNamedColor CColor::m_namedColor[CColor::numNamedColors] = { {aliceblue , "aliceblue"}, {antiquewhite , "antiquewhite"}, {aqua , "aqua"}, {aquamarine , "aquamarine"}, {azure , "azure"}, {beige , "beige"}, {bisque , "bisque"}, {black , "black"}, {blanchedalmond , "blanchedalmond"}, {blue , "blue"}, {blueviolet , "blueviolet"}, {brown , "brown"}, {burlywood , "burlywood"}, {cadetblue , "cadetblue"}, {chartreuse , "chartreuse"}, {chocolate , "chocolate"}, {coral , "coral"}, {cornflower , "cornflower"}, {cornsilk , "cornsilk"}, {crimson , "crimson"}, {cyan , "cyan"}, {darkblue , "darkblue"}, {darkcyan , "darkcyan"}, {darkgoldenrod , "darkgoldenrod"}, {darkgray , "darkgray"}, {darkgreen , "darkgreen"}, {darkkhaki , "darkkhaki"}, {darkmagenta , "darkmagenta"}, {darkolivegreen , "darkolivegreen"}, {darkorange , "darkorange"}, {darkorchid , "darkorchid"}, {darkred , "darkred"}, {darksalmon , "darksalmon"}, {darkseagreen , "darkseagreen"}, {darkslateblue , "darkslateblue"}, {darkslategray , "darkslategray"}, {darkturquoise , "darkturquoise"}, {darkviolet , "darkviolet"}, {deeppink , "deeppink"}, {deepskyblue , "deepskyblue"}, {dimgray , "dimgray"}, {dodgerblue , "dodgerblue"}, {firebrick , "firebrick"}, {floralwhite , "floralwhite"}, {forestgreen , "forestgreen"}, {fuchsia , "fuchsia"}, {gainsboro , "gainsboro"}, {ghostwhite , "ghostwhite"}, {gold , "gold"}, {goldenrod , "goldenrod"}, {gray , "gray"}, {green , "green"}, {greenyellow , "greenyellow"}, {honeydew , "honeydew"}, {hotpink , "hotpink"}, {indianred , "indianred"}, {indigo , "indigo"}, {ivory , "ivory"}, {khaki , "khaki"}, {lavender , "lavender"}, {lavenderblush , "lavenderblush"}, {lawngreen , "lawngreen"}, {lemonchiffon , "lemonchiffon"}, {lightblue , "lightblue"}, {lightcoral , "lightcoral"}, {lightcyan , "lightcyan"}, {lightgoldenrodyellow , "lightgoldenrodyellow"}, {lightgreen , "lightgreen"}, {lightgrey , "lightgrey"}, {lightpink , "lightpink"}, {lightsalmon , "lightsalmon"}, {lightseagreen , "lightseagreen"}, {lightskyblue , "lightskyblue"}, {lightslategray , "lightslategray"}, {lightsteelblue , "lightsteelblue"}, {lightyellow , "lightyellow"}, {lime , "lime"}, {limegreen , "limegreen"}, {linen , "linen"}, {magenta , "magenta"}, {maroon , "maroon"}, {mediumaquamarine , "mediumaquamarine"}, {mediumblue , "mediumblue"}, {mediumorchid , "mediumorchid"}, {mediumpurple , "mediumpurple"}, {mediumseagreen , "mediumseagreen"}, {mediumslateblue , "mediumslateblue"}, {mediumspringgreen , "mediumspringgreen"}, {mediumturquoise , "mediumturquoise"}, {mediumvioletred , "mediumvioletred"}, {midnightblue , "midnightblue"}, {mintcream , "mintcream"}, {mistyrose , "mistyrose"}, {moccasin , "moccasin"}, {navajowhite , "navajowhite"}, {navy , "navy"}, {oldlace , "oldlace"}, {olive , "olive"}, {olivedrab , "olivedrab"}, {orange , "orange"}, {orangered , "orangered"}, {orchid , "orchid"}, {palegoldenrod , "palegoldenrod"}, {palegreen , "palegreen"}, {paleturquoise , "paleturquoise"}, {palevioletred , "palevioletred"}, {papayawhip , "papayawhip"}, {peachpuff , "peachpuff"}, {peru , "peru"}, {pink , "pink"}, {plum , "plum"}, {powderblue , "powderblue"}, {purple , "purple"}, {red , "red"}, {rosybrown , "rosybrown"}, {royalblue , "royalblue"}, {saddlebrown , "saddlebrown"}, {salmon , "salmon"}, {sandybrown , "sandybrown"}, {seagreen , "seagreen"}, {seashell , "seashell"}, {sienna , "sienna"}, {silver , "silver"}, {skyblue , "skyblue"}, {slateblue , "slateblue"}, {slategray , "slategray"}, {snow , "snow"}, {springgreen , "springgreen"}, {steelblue , "steelblue"}, {tan , "tan"}, {teal , "teal"}, {thistle , "thistle"}, {tomato , "tomato"}, {turquoise , "turquoise"}, {violet , "violet"}, {wheat , "wheat"}, {white , "white"}, {whitesmoke , "whitesmoke"}, {yellow , "yellow"}, {yellowgreen , "yellowgreen"} }; LPCSTR CColor::GetNameFromIndex(int i) { ASSERT(0 <= i && i < numNamedColors); return m_namedColor[i].name; } CColor CColor::GetColorFromIndex(int i) { ASSERT(0 <= i && i < numNamedColors); return m_namedColor[i].color; } CColor CColor::FromString(LPCSTR pcColor) { CColor t; t.SetString(pcColor); return t; } CColor::CColor(COLORREF cr) : m_bIsRGB(true), m_bIsHLS(false), m_colorref(cr) {} CColor::operator COLORREF() const { const_cast<CColor*>(this)->ToRGB(); return m_colorref; } // RGB void CColor::SetRed(int red) { ASSERT(0 <= red && red <= 255); ToRGB(); m_color[c_red] = static_cast<unsigned char>(red); m_bIsHLS = false; } void CColor::SetGreen(int green) { ASSERT(0 <= green && green <= 255); ToRGB(); m_color[c_green] = static_cast<unsigned char>(green); m_bIsHLS = false; } void CColor::SetBlue(int blue) { ASSERT(0 <= blue && blue <= 255); ToRGB(); m_color[c_blue] = static_cast<unsigned char>(blue); m_bIsHLS = false; } void CColor::SetRGB(int red, int blue, int green) { ASSERT(0 <= red && red <= 255); ASSERT(0 <= green && green <= 255); ASSERT(0 <= blue && blue <= 255); m_color[c_red] = static_cast<unsigned char>(red); m_color[c_green] = static_cast<unsigned char>(
评论
    相关推荐
    • QT编程入门经典——对话框
      很多程序都是由一个主窗口,在这个主窗口中包含一个菜单条,多个工具条,和足够多的对话框。也有些程序本身就是一个对话框,直接相应用户的输入请求。 用代码的方式创建我们的第一个对话框,然后用Qt Designer工具...
    • div弹出框、对话框、模态窗口
      兼容:IE6+、Firefox、Chrome、Safari、Opera
    • overlappinz.zip
      在Windows NT使用IO端口 包括装载,开始,卸载驱动程序的函数
    • QOCO9.zip
      Bitmap processing of the typical source, very useful
    • nabe-type-absolutely.rar
      View the system service name and type, and the running state is absolutely original
    • 8836476.zip
      一个简单的可用于FromView和Dialog的按分辨率自动调整控件位置,大小的例子代码
    • 2170004.rar
      Example of Embedded Zerotree Wavelet encoding in ANSI-C
    • jranslating-Petri.rar
      BPEL tools for translating Petri net to Bpel code
    • xoqkqg.zip
      教您如何将一个EXE程序装在到另一个EXE程序中,并可释放出来
    • qpopper2.53.tar.Z
      pop3 server