-
大小: 15.26MB文件類型: .rar金幣: 1下載: 0 次發(fā)布日期: 2023-08-01
- 語言: 其他
- 標(biāo)簽: 操作系統(tǒng)??源代碼??HelloChina??V1.75??
資源簡介
Hello China V1.75二進(jìn)制文件和源代碼
代碼片段和文件信息
//***********************************************************************/
//????Author????????????????????:?sh
//????Original?Date?????????????:?1404?2009
//????Module?Name???????????????:?BMPAPI.cpp
//????Module?Funciton???????????:?Read?BMP?from?file?Write?BMP?from?memory?to?
// ??file;?ImageAlloc?allocate?mem?for?BMPIMAGE
//
//????Last?modified?Author??????:?sh
//????Last?modified?Date????????:?1804?2009
//????Last?modified?Content?????:
//????????????????????????????????1.
//????????????????????????????????2.
//????Lines?number??????????????:?
//***********************************************************************/
#ifndef?__KAPI_H__
#include?“..\INCLUDE\\KAPI.H“
#endif
#ifndef?__VESA_H__
#include?“..\INCLUDE\VESA.H“
#endif
#ifndef?__VIDEO_H__
#include?“..\INCLUDE\VIDEO.H“
#endif
#ifndef?__GUISHELL_H__
#include?“..\INCLUDE\GUISHELL.H“
#endif
#include?“..\include\BMPAPI.h“
char?NUM16[16]?=?{
‘0‘‘1‘‘2‘‘3‘‘4‘‘5‘‘6‘‘7‘‘8‘‘9‘‘a(chǎn)‘‘b‘‘c‘‘d‘‘e‘‘f‘};
#if?0
BMPIMAGE?*BmpRead(FILE*?InBmp)
{
int?n?x?y;
int?count?mask?type?compression;
int?width?height?BitCount?ColorNum;
int?LineBytes?BytesRead?ColorIndex;
unsigned?char?r?g?b?byte;
unsigned?char?ColorMap[3?*?256];
unsigned?char?PadZeros[4]?BmpHeader[54];
BMPIMAGE?*image;
//Read?54?bytes?to?BmpHeader
fread(BmpHeader?sizeof(unsigned?char)?54?InBmp);?
//little-endian?the?high?bit?in?high?byte
//type?0?1
type?=?(BmpHeader[1]?<8)?+?BmpHeader[0];
//width?18?19?20?21?
width?=?(BmpHeader[21]?<24)?+?(BmpHeader[20]?<16)?+?(BmpHeader[19]?<8)?+?BmpHeader[18];?
//height?22?23?24?25
height?=?(BmpHeader[25]?<24)?+?(BmpHeader[24]?<16)?+?(BmpHeader[23]?<8)?+?BmpHeader[22];
//bitcount?28?29
BitCount?=?(BmpHeader[29]?<8)?+?BmpHeader[28];
//compression?30?31?32?33
compression?=?(BmpHeader[33]?<24)?+?(BmpHeader[32]?<16)?+?(BmpHeader[31]?<8)?+?BmpHeader[30];
LineBytes?=?(width?*?BitCount?+?31)?/?32?*?4;
/************************************************************************/
/*?assert?the?image?is?bmp?????????????????????????????????????????????????????????????????????*/
/************************************************************************/
if?(type?!=?((unsigned?short)(‘M‘?<8)?|?‘B‘))
{
printf(“the?file?maybe?is?not?a?bmp?image.\n“);
return?NULL;
}
if?(compression?!=?0)
{
printf(“can?not?read?a?compressed?bmp.\n“);
return?NULL;
}
if?(BitCount?>?8?&&?BitCount?!=?24)
{
printf(“can?not?read?a?%d?bit?bmp.\n“?BitCount);
return?NULL;
}
//If?the?bmp?has?24?bpp
if?(BitCount?==?24)
{
if?((image?=?ImageAlloc(height?width))?==?NULL)
{
printf(“fail?to?allocate?image.\n“);
return?NULL;
}
image->ColorIndex?=?NULL;
for?(y?=?height?-?1;?y?>=?0;?y--)?
{
for?(x?=?0;?x? {
//first?is?blue?then?is?green?third?is?red
//InBmp?auto?point?to?next
fread(&b
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????198144??2008-12-13?13:15??doc\ASCII_SCANCODE.doc
?????文件??????51200??2011-06-04?02:38??doc\BIOS.doc
?????文件?????123904??2011-06-12?14:55??doc\EXEMOD.doc
?????文件?????274944??2008-12-14?21:26??doc\FAT?SPECIFICATION.doc
?????文件??????57856??2009-02-01?22:09??doc\FDISK.DOC
?????文件?????201728??2009-05-02?11:36??doc\Hello?China?GUI模塊HLD設(shè)計.doc
?????文件????2130432??2009-05-17?13:18??doc\Hello?China?V16圖形用戶接口(GUI)模塊開發(fā)指南.ppt
?????文件??????92672??2011-06-12?22:08??doc\Hello?China?V2.0?architecture.ppt
?????文件?????443904??2011-06-28?22:42??doc\Hello?China?V2.0應(yīng)用計劃-云終端方向.ppt
?????文件?????437248??2011-07-06?22:39??doc\Hello?China?V2.0應(yīng)用計劃-面向云計算的終端軟件平臺V1.0.ppt
?????文件??????48640??2009-03-21?00:22??doc\Hello?China可加載模塊的實現(xiàn).doc
?????文件?????115432??2008-12-14?21:31??doc\IDE?Specification.txt
?????文件??????32768??2009-03-21?11:56??doc\IMAGE-~1\APPEND.exe
?????文件???????4096??1998-09-06?15:20??doc\IMAGE-~1\ASC16
?????文件????????512??2005-01-26?21:26??doc\IMAGE-~1\bootsect.bin
?????文件???????9019??2004-05-17?10:30??doc\IMAGE-~1\FMTLDRF.COM
?????文件???????6864??2009-04-12?00:23??doc\IMAGE-~1\gui.bin
?????文件??????26000??2009-05-17?12:45??doc\IMAGE-~1\hcngui.bin
?????文件??????26000??2009-05-17?12:45??doc\IMAGE-~1\HCNGUI.dll
?????文件?????267616??2009-04-19?21:58??doc\IMAGE-~1\hzk16
?????文件?????529760??2009-05-17?12:45??doc\IMAGE-~1\master.bin
?????文件?????125008??2009-04-12?13:06??doc\IMAGE-~1\master.dll
?????文件??????49152??2009-03-14?16:42??doc\IMAGE-~1\miniker.bin
?????文件????????213??2009-05-17?13:15??doc\IMAGE-~1\PROC.BAT
?????文件????????213??2009-05-17?13:15??doc\IMAGE-~1\proc1.txt
?????文件??????28672??2009-03-21?01:13??doc\IMAGE-~1\process.exe
?????文件???????4096??2009-03-29?14:52??doc\IMAGE-~1\realinit.bin
?????文件????1474560??2011-12-25?16:34??doc\IMAGE-~1\VFLOPPY.VFD
?????文件??????28672??2008-10-30?23:20??doc\IMAGE-~1\VFMAKER.exe
?????文件??????20480??2011-06-12?20:51??doc\ISSUES.doc
............此處省略554個文件信息
評論
共有 條評論