91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.53MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-09-19
  • 語言: 其他
  • 標簽: DCT??

資源簡介

不用多說了,經典算法。初學者和需要交作業的學生可以參考。完整的源代碼和可執行程序。

資源截圖

代碼片段和文件信息

//??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‘?<
#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??2004-06-30?00:54??離散余弦變換\離散余弦變換\測試圖片\DCT變換結果.bmp

????..A.SH.??????8192??2009-05-21?16:15??離散余弦變換\離散余弦變換\測試圖片\Thumbs.db

?????文件??????66614??2004-06-29?22:59??離散余弦變換\離散余弦變換\測試圖片\原始lena圖像.bmp

?????文件??????28549??2009-05-21?16:16??離散余弦變換\離散余弦變換\源代碼\Debug\MainFrm.obj

?????文件????5068580??2009-05-21?16:16??離散余弦變換\離散余弦變換\源代碼\Debug\MainFrm.pch

?????文件??????25600??2009-05-21?16:16??離散余弦變換\離散余弦變換\源代碼\Debug\MainFrm.pdb

?????文件?????181248??2009-05-21?16:16??離散余弦變換\離散余弦變換\源代碼\Debug\vc60.idb

?????文件??????69632??2009-05-21?16:16??離散余弦變換\離散余弦變換\源代碼\Debug\vc60.pdb

?????文件??????23782??2004-03-07?17:05??離散余弦變換\離散余弦變換\源代碼\dibapi.cpp

?????文件???????1876??2000-02-03?07:29??離散余弦變換\離散余弦變換\源代碼\dibapi.h

?????文件???????2506??2004-05-20?14:25??離散余弦變換\離散余弦變換\源代碼\MainFrm.cpp

?????文件???????3413??2009-05-21?16:16??離散余弦變換\離散余弦變換\源代碼\MainFrm.dsp

?????文件????????522??2009-05-21?16:16??離散余弦變換\離散余弦變換\源代碼\MainFrm.dsw

?????文件???????1581??2004-05-20?14:25??離散余弦變換\離散余弦變換\源代碼\MainFrm.h

?????文件??????33792??2009-05-21?16:16??離散余弦變換\離散余弦變換\源代碼\MainFrm.ncb

?????文件??????49664??2009-05-21?16:16??離散余弦變換\離散余弦變換\源代碼\MainFrm.opt

?????文件???????1381??2009-05-21?16:16??離散余弦變換\離散余弦變換\源代碼\MainFrm.plg

?????文件???????3157??2004-05-20?17:49??離散余弦變換\離散余弦變換\源代碼\mydib.cpp

?????文件?????????72??2004-05-20?17:26??離散余弦變換\離散余弦變換\源代碼\mydib.h

?????文件??????46272??2004-06-30?00:52??離散余弦變換\離散余弦變換\源代碼\MyDIP.aps

?????文件???????2615??2004-06-30?00:51??離散余弦變換\離散余弦變換\源代碼\MyDIP.clw

?????文件???????4158??2004-05-20?14:25??離散余弦變換\離散余弦變換\源代碼\MyDIP.cpp

?????文件???????4781??2004-05-20?17:54??離散余弦變換\離散余弦變換\源代碼\MyDIP.dsp

?????文件????????533??2004-05-20?14:25??離散余弦變換\離散余弦變換\源代碼\MyDIP.dsw

?????文件???????1345??2004-05-20?14:25??離散余弦變換\離散余弦變換\源代碼\MyDIP.h

?????文件??????12279??2004-06-30?00:52??離散余弦變換\離散余弦變換\源代碼\MyDIP.rc

?????文件???????4007??2004-05-20?17:10??離散余弦變換\離散余弦變換\源代碼\MyDIPDoc.cpp

?????文件???????1830??2004-05-20?15:17??離散余弦變換\離散余弦變換\源代碼\MyDIPDoc.h

?????文件??????11084??2004-06-30?00:54??離散余弦變換\離散余弦變換\源代碼\MyDIPView.cpp

?????文件???????1852??2004-06-30?00:51??離散余弦變換\離散余弦變換\源代碼\MyDIPView.h

............此處省略20個文件信息

評論

共有 條評論