SDC C-Project CF Review 프로그램
LYW
2021-08-17 572aebd50409d2f11183d6ebbb9d12fe9041e7a5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
 
#include "akGraph/akGraphLinker.h"
 
class AFX_EXT_CLASS CakPixel
{
public:
    CakPixel(CDC* pSrc);
    ~CakPixel();
    COLORREF GetPixel(int x, int y);
    BYTE* GetPixelSrc(int x, int y);
 
    LPVOID    GetBitmapBits(){return m_pBits;};
    BITMAPINFO* GetBitmapInfo(){return m_pbmi;};
 
protected:
    CakPixel();
    LPVOID m_pBits; 
    int m_nBytePerLine;
    BITMAPINFO* m_pbmi;
    int m_nDepth;
 
    COLORREF (CakPixel::*m_pGetPixel)(int x, int y);
 
    COLORREF GetPixel8(int x, int y);
 
    COLORREF GetPixel16(int x, int y);
    COLORREF GetPixel24(int x, int y);
    COLORREF GetPixel32(int x, int y);
 
    COLORREF GetPixel16ByTable555(int x, int y);
    COLORREF GetPixel16ByTable565(int x, int y);
    COLORREF GetPixel32ByTable(int x, int y);
};