资源简介
harris角点检测算子实现,平台VC++ 6.0
代码片段和文件信息
// dibapi.cpp
//
// Source file for Device-Independent Bitmap (DIB) API. Provides
// the following functions:
//
// PaintDIB() - Painting routine for a DIB
// CreateDIBPalette() - Creates a palette from a DIB
// FindDIBBits() - Returns a pointer to the DIB bits
// DIBWidth() - Gets the width of the DIB
// DIBHeight() - Gets the height of the DIB
// PaletteSize() - Gets the size required to store the DIB‘s palette
// DIBNumColors() - Calculates the number of colors
// in the DIB‘s color table
// CopyHandle() - Makes a copy of the given global memory block
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1997 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.
#include “stdafx.h“
#include “dibapi.h“
#include
#include
#include
#define DIB_HEADER_MARKER ((WORD) (‘M‘ << 8) | ‘B‘)
#ifdef _MAC
#define SWAPWORD(x) MAKEWORD(HIBYTE(x) LOBYTE(x))
#define SWAPLONG(x) MAKELONG(SWAPWORD(HIWORD(x)) SWAPWORD(LOWORD(x)))
void ByteSwapHeader(BITMAPFILEHEADER* bmiHeader);
void ByteSwapInfo(LPSTR lpHeader BOOL fWin30Header);
#endif
/*************************************************************************
*
* PaintDIB()
*
* Parameters:
*
* HDC hDC - DC to do output to
*
* LPRECT lpDCRect - rectangle on DC to do output to
*
* HDIB hDIB - handle to global memory with a DIB spec
* in it followed by the DIB bits
*
* LPRECT lpDIBRect - rectangle of DIB to output into lpDCRect
*
* CPalette* pPal - pointer to CPalette containing DIB‘s palette
*
* Return Value:
*
* BOOL - TRUE if DIB was drawn FALSE otherwise
*
* Description:
* Painting routine for a DIB. Calls StretchDIBits() or
* SetDIBitsToDevice() to paint the DIB. The DIB is
* output to the specified DC at the coordinates given
* in lpDCRect. The area of the DIB to be output is
* given by lpDIBRect.
*
************************************************************************/
BOOL WINAPI PaintDIB(HDC hDC
LPRECT lpDCRect
HDIB hDIB
LPRECT lpDIBRect
CPalette* pPal)
{
LPSTR lpDIBHdr; // Pointer to BITMAPINFOHEADER
LPSTR lpDIBBits; // Pointer to DIB bits
BOOL bSuccess=FALSE; // Success/fail flag
HPALETTE hPal=NULL; // Our DIB‘s palette
HPALETTE hOldPal=NULL; // Previous palette
/* Check for valid DIB handle */
if (hDIB == NULL)
return FALSE;
/* Lock down the DIB and get a pointer to the beginning of the bit
* buffer
*/
l 属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 66614 2005-11-15 01:28 Harris Corner\a.bmp
文件 66614 2005-11-15 15:19 Harris Corner\b_star.BMP
文件 66614 2005-01-28 17:37 Harris Corner\c.BMP
文件 66614 2005-03-09 17:48 Harris Corner\c加噪.bmp
文件 66614 2005-03-10 01:48 Harris Corner\d积木.bmp
文件 66614 2005-03-10 01:49 Harris Corner\e房屋.bmp
文件 23782 2004-03-07 17:05 Harris Corner\Harris Corner\dibapi.cpp
文件 1876 2000-02-03 07:29 Harris Corner\Harris Corner\dibapi.h
文件 48460 2005-11-15 15:59 Harris Corner\Harris Corner\imagetest.aps
文件 4092 2005-11-15 15:59 Harris Corner\Harris Corner\imagetest.clw
文件 4230 2005-09-22 21:51 Harris Corner\Harris Corner\imagetest.cpp
文件 4999 2005-11-15 16:02 Harris Corner\Harris Corner\imagetest.dsp
文件 541 2005-09-22 21:51 Harris Corner\Harris Corner\imagetest.dsw
文件 1389 2005-09-22 21:51 Harris Corner\Harris Corner\imagetest.h
文件 14723 2005-11-15 15:59 Harris Corner\Harris Corner\imagetest.rc
文件 14874 2005-11-15 16:01 Harris Corner\Harris Corner\imagetestDoc.cpp
文件 1757 2005-11-15 04:27 Harris Corner\Harris Corner\imagetestDoc.h
文件 4748 2005-11-15 15:21 Harris Corner\Harris Corner\imagetestView.cpp
文件 1912 2005-11-15 04:29 Harris Corner\Harris Corner\imagetestView.h
文件 1251 2005-11-15 15:56 Harris Corner\Harris Corner\Input2.cpp
文件 1235 2005-11-15 15:56 Harris Corner\Harris Corner\Input2.h
文件 2510 2005-09-22 21:51 Harris Corner\Harris Corner\MainFrm.cpp
文件 1581 2005-09-22 21:51 Harris Corner\Harris Corner\MainFrm.h
文件 1006 2005-09-23 04:35 Harris Corner\Harris Corner\ParaInput1.cpp
文件 1221 2005-09-23 04:35 Harris Corner\Harris Corner\ParaInput1.h
文件 4383 2005-09-22 21:51 Harris Corner\Harris Corner\ReadMe.txt
文件 40960 2005-11-15 16:48 Harris Corner\Harris Corner\Release\imagetest.exe
文件 1078 2005-09-22 21:51 Harris Corner\Harris Corner\res\imagetest.ico
文件 401 2005-09-22 21:51 Harris Corner\Harris Corner\res\imagetest.rc2
文件 1078 2005-09-22 21:51 Harris Corner\Harris Corner\res\imagetestDoc.ico
............此处省略13个文件信息
- 上一篇:C语言 键盘记录
- 下一篇:表达式求值包括多位数、小数、负数
相关资源
- C++获取计算机的CPU ID,硬盘序列号等
- C++头文件转delphi工具 + 源码
- 国际象棋的qt源代码
- C++中头文件与源文件的作用详解
- C++多线程网络编程Socket
- VC++ 多线程文件读写操作
- 利用C++哈希表的方法实现电话号码查
- 移木块游戏,可以自编自玩,vc6.0编写
- C++纯文字DOS超小RPG游戏
- VC++MFC小游戏实例教程(实例)+MFC类库
- 连铸温度场计算程序(C++)
- 6自由度机器人运动学正反解C++程序
- Em算法(使用C++编写)
- libstdc++-4.4.7-4.el6.i686.rpm
- VC++实现CMD命令执行与获得返回信息
- 白话C++(全)
- C++标准库第1、2
- 大数类c++大数类
- C++语言编写串口调试助手
- c++素数筛选法
- C++ mqtt 用法
- 商品库存管理系统 C++ MFC
- c++ 多功能计算器
- C++17 In Detail
- 嵌入式QtC++编程课件
- 颜色识别形状识别STM103嵌入式代码
- c++ 邮件多附件群发
- c++ 透明代理(hookproxy)
- mfc 调用redis
- FTP客户端源码(c++)
川公网安备 51152502000135号
评论
共有 条评论