📄 image.h
字号:
//
// 24Bits/Pixel图像
//
// Copyright (c) 2000-2001 Chihiro.SAKAMOTO (HyperWorks)
//
#ifndef __image_h
#define __image_h
#include "Dib.h"
#include "Misc.h"
class CDC;
//
// 专给24bit使用的CIB类别
//
class CImage: public CDib {
public:
CImage(): CDib() {}
CImage(int width, int height);
BOOL Create(int width, int height);
BOOL LoadImage(const char *name, int ox=0, int oy=0);
void Copy(const CImage *image, const CRect &rect);
void Copy(const CImage *image);
void MixImage(const CImage *image, const CRect &rect, COLORREF trans=RGB(0, 255, 0));
void MixImage(const CImage *image, const CRect &rect, CPoint src_pos, COLORREF trans=RGB(0, 255, 0));
} ;
// inline 成员函式
inline void CImage::Copy(const CImage *image)
{
Copy(image, CRect(0, 0, image->Width(), image->Height()));
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -