bc... []

picture.h ( File view )

  • By shanzhu 2015-10-16
  • View(s):11
  • Download(s):1
  • Point(s): 1
			#ifndef PICTURE_H
#define PICTURE_H 1
#include 
#include 
#include 
using namespace std;

//图象数据压缩的类型(BITMAPINFOHEADER中的biCompression)
#define BI_RGB 0			//BI_RGB:没有压缩
#define BI_RLE8 1			//BI_RLE8:每个象素8比特的RLE压缩编码,压缩格式由2字节组成
#define BI_RLE4 2			//BI_RLE4:每个象素4比特的RLE压缩编码,压缩格式由2字节组成
#define BI_BITFIELDS 3	//BI_BITFIELDS:每个象素的比特由指定的掩码决定
#define BI_JPEG 4			//BI_JPEG 位图含JPEG图像(仅用于打印机)
#define BI_PNG 5			//BI_PNG 位图含PNG图像(仅用于打印机)

//定义数据类型(或者#include )
typedef unsigned short int UINT16;
typedef unsigned long int DWORD;
typedef long int LONG;
typedef unsigned short int WORD;
typedef unsigned char BYTE;

//-------------定义夫类 图像类--------------
class Picture
{

	public:
	UINT16 Ftype(const char *filename);	//获取文件类型
	virtual int picread(const char *filename){
cout<<"picturt"<
            
...
Expand> <Close

Want complete source code? Download it here

Point(s): 1

Download
0 lines left, continue to read

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
picture.cpp5.94 kB24-05-12|12:27
picture.h4.80 kB24-05-12|10:52
BMP.cpp7.40 kB27-05-12|00:21
main.cpp670.00 B24-05-12|12:25
...

picture.h (6.43 kB)

Need 1 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D