搜索资源列表
JoyDe
- 利用书中图5.19和图5.20的最大值堆实现一个优先队列。对于队列的操作应该支持下列几种指令: void enqueue[int ObjectID, int Priority] int dequeue[] void changeweight[int ObjectID, int newPriority] 函数enqueue向优先队列中插入一个ID号为ObjectID、优先级为Priority的新对象。函数dequeue从优先队列中删除优先级最高的对象,并返回该对象的
RGBandHLS
- 本实验实现RGB颜色与HLS颜色的相互转换;在此实验中,定义了函数void HSLtoRGB(UINT hue, UINT sat, UINT light, BYTE &r, BYTE &g, BYTE &b)实现HSL向RGB转换;void CPaletteDlg::RGBtoHSL(BYTE r, BYTE g, BYTE b, UINT &hue, UINT &sat, UINT &light)实现RGB向HSL转换-Experimental realization of the R
modFixSlivers
- finding void polygon and fix based on tolerance by using ArcObjects
MyCollision1
- 基于vc++使用opengl编写的3D球体,可以通过鼠标点击改变颜色。 void CAboutDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX) //{{AFX_DATA_MAP(CAboutDlg) //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) //{{AFX_MSG_MAP(CAboutD
OTSU
- 在VC++6.0 已经openCV环境下的一维OTSU代码,实现图像二值化-// OTSU.h: interface for the COTSU class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_OTSU_H__33C2086A_C181_490B_946D_837B4C7FB914__INCLUDED_) #define AFX
ZhongZhi
- 企业门户网站,非常好,强大的。 企业门户网站,非常好,强大的。 -void good void goodvoid goodvoid goodvoid goodvoid goodvoid goodvoid goodvoid goodvoid good
realtime
- 实时曲线绘制程序实例,多用于工业监控。// 接口说明: // 设置网格间距 void SetGridResolutionX(int nGridReluX) // 设置网格间距 void SetGridResolutionY(int nGridReluY) // 设置网格滚动速度,正值为从左向右滚动,0不动 void SetGridScrollSpeedX(int nSpeedX) // 正值为从上到下滚动,0不动 void SetGridScrollS
20090902_2319
- 演示如何平移图片 作者:巫丙亮 华东交通大学信息工程学院02级-void CMyDlg::Onx() { // TODO: Add your control notification handler code here InvalidateRect(NULL,true) Y=430-Y Y1=430-Y1 Y2=430-Y2 Y3=430-Y3 } void CMyDlg::Ony() { // TODO:
aaa
- 这是用MFC编写的使用openGL的视口代码。 CChildView::CChildView() 构造函数 CChildView::~CChildView() 析构函数 BEGIN_MESSAGE_MAP(CChildView,CWnd ) 消息映射 BOOL CChildView::PreCreateWindow(CREATESTRUCT& cs)创建窗口重新设置窗口参数 BOOL CChildView::PreTranslateMessage( MSG* pMsg ) 翻
FullSceneMotionBlur_src_demo
- The texture used for the motion blur is d In the demo application, the following keys are usable: * s - for changing the rendered scene. * t - for changing the FirstRenderTexture flag that is passed to the RenderToMotionBlurTexture procedu
picRunner
- C# :实现水印与图片合成,并利用Graphics 压缩图像质量 , (委托实现listBox的动态添加提示)-public void MarkToImage(string InUploadImagePath, string inLogoImagePath, string InSavePath, string strType)
413t
- 多图片合成时设置图片的透明度,以融合模式合成图片-private void MarkImage_Load(object sender, EventArgs e)
Quanfangxiangpengzhang
- 函数名称:Quanfangxiangpengzhang() 函数类型:void 功能:对二值图像进行全方向膨胀。 -function: the direction of the binary expansion of the whole image.
ImageStu
- 图形图像学-图形开发系统框架 class CAboutDlg : public CDialog { public: CAboutDlg() // Dialog Data //{{AFX_DATA(CAboutDlg) enum { IDD = IDD_ABOUTBOX } //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUA
mouse_event
- This program creates a rectangle when you click the mouse on the window, and stretches the rectangle until you release the mouse. This requires the creation of a mouse callback. For the main function we use a while loop that keeps redrawing each box
moxingjiaohu
- 实现三维模型的交互,如添加新的模型,改变模型的颜色等等,部分代码自己写的,可能功能不算特别完善,共同改进-private void moxingjiaohu ToolStripMenuItem_Click(object sender, EventArgs e) private void axSceneControl1_OnMouseDown(object sender, ISceneControlEvents_OnMouseDownEvent e) public void A
chenggongchengxu
- rgb to HSV,很有用,调试成功,可以应用-rgb to HSV,#include "stdafx.h" #include <iostream.h> void main(float R, float G, float B, float& H, float& S, float&V) { // r,g,b values are from 0 to 1 // h = [0,360], s = [0,1], v = [0,1]
void-glutDisplayFunc
- opengl program: this is the structure of a prolog program that is a main game engine
openGLwater
- 操作指导7水纹 一、 建立工程 二、 添加函数和变量,修改头文件(view.h) public: int npoint float lpoint[4][4] float cpoint[102][76][3] void drawplat() void lm() BOOL movekey CClientDC *my_pDC CRect my_oldRect BOOL mytbar BOOL mysbar
openglcup
- openGL茶杯茶叶操作指导4------玻璃杯里的绿茶 一. 如操作指导(1)建立框架.见welcome2 二. 添加变量与函数并初始化 在VIEW类中加入公共变量 float tbh[6][5] //6片茶叶的角度、位置、大小 BOOL keyn //定义动画开关 在VIEW类中加入公共函数 void mytea(float x,int y) //定义绘制茶杯的函数 void tea3() //茶叶的函数 void lm() //光照和材质的函数