Description: 从BMP文件中装入位图并显示
the bmp file has four sections. the first is bitmapfileheader. this contains the bitmap file signature, the size of the bitmap and the offset to the array of bits that define the bitmap image. the next section is the bitmapinfoheader. this contains information such as the height and widht of the bitmap and the number of colors used. this section is followed by the color table. the color table contains two or more rgbquad structures the final section is the actual bits that define the bitmap image.
by the way, the bmp file holds a device independent bitmap and sometimes the extension used is dib.
the steps outlined below is valid for both windows 95 and windows nt. on windows 95, you can also use the loadimage() function to load a bitmap from a file. although windows nt also supports this function, it does not support the lr_loadfromfile flag. -from BMP file loaded bitmap and show the bmp file has four sections. The first is bitmapfileheader. This contains the bitmap file signature, the size of the bitmap and the offset to the array of bits that define the bitmap image. The next section is the bitmapinfoheader. this contains information such as the height and widht of the bitmap and the number of colors used. this section is followed by the color table. the color table contains two or more structures rgbquad the final section is the actual bits that define the bitmap image. by the way, the bmp file holds a device independent bitmap and sometimes the extension used is Freehand. the steps outlined below is valid for both Windows 95 and Windows NT. on Windows 95, you can also use the loadimage () function to load a bitmap from a fil Platform: |
Size: 7590 |
Author:刘永平 |
Hits:
Description: 1 熟悉VC工具,掌握工程创建过程及各选项含义。
2 结合2*2实际位图,了解位图(bmp)概念,掌握文件头(BITMAPFILEHEADER)和信息头(BITMAPINFOHEADER) 两个结构体各参数含义。
3 完成bmp图象的打开和显示功能。-a VC familiar with the tools to project the process and the option to create meaning. 2 2 * 2 with the actual bitmap understand bitmap (bmp) concept, master file (BITMAPFILEHEADER) and the header (BITMAPINFOHE ADER) 2 structure meaning of the parameters. 3 completed bmp image to open and display function. Platform: |
Size: 61147 |
Author:英雄 |
Hits:
Description: 从BMP文件中装入位图并显示
the bmp file has four sections. the first is bitmapfileheader. this contains the bitmap file signature, the size of the bitmap and the offset to the array of bits that define the bitmap image. the next section is the bitmapinfoheader. this contains information such as the height and widht of the bitmap and the number of colors used. this section is followed by the color table. the color table contains two or more rgbquad structures the final section is the actual bits that define the bitmap image.
by the way, the bmp file holds a device independent bitmap and sometimes the extension used is dib.
the steps outlined below is valid for both windows 95 and windows nt. on windows 95, you can also use the loadimage() function to load a bitmap from a file. although windows nt also supports this function, it does not support the lr_loadfromfile flag. -from BMP file loaded bitmap and show the bmp file has four sections. The first is bitmapfileheader. This contains the bitmap file signature, the size of the bitmap and the offset to the array of bits that define the bitmap image. The next section is the bitmapinfoheader. this contains information such as the height and widht of the bitmap and the number of colors used. this section is followed by the color table. the color table contains two or more structures rgbquad the final section is the actual bits that define the bitmap image. by the way, the bmp file holds a device independent bitmap and sometimes the extension used is Freehand. the steps outlined below is valid for both Windows 95 and Windows NT. on Windows 95, you can also use the loadimage () function to load a bitmap from a fil Platform: |
Size: 7168 |
Author:刘永平 |
Hits:
Description: 1 熟悉VC工具,掌握工程创建过程及各选项含义。
2 结合2*2实际位图,了解位图(bmp)概念,掌握文件头(BITMAPFILEHEADER)和信息头(BITMAPINFOHEADER) 两个结构体各参数含义。
3 完成bmp图象的打开和显示功能。-a VC familiar with the tools to project the process and the option to create meaning. 2 2* 2 with the actual bitmap understand bitmap (bmp) concept, master file (BITMAPFILEHEADER) and the header (BITMAPINFOHE ADER) 2 structure meaning of the parameters. 3 completed bmp image to open and display function. Platform: |
Size: 60416 |
Author:英雄 |
Hits:
Description: 从一个.bmp文件中读取数据(包括BITMAPINFOHEADER,调色板和实际图象数据)将其存储在一个全局内存句柄hImgData中,这个hImgData将在以后的图象处理程序中用到。同时填写一个类型为HBITMAP的全局变量hBitmap和一个类型为HPALETTE的全局变量hPalette。这两个变量将在处理WM_PAINT消息时用到,用来显示出位图。-From a. Bmp file to read data (including the BITMAPINFOHEADER, palette and the actual image data) to its stored in a global memory handle hImgData, this hImgData will in future image processing procedures used. At the same time, fill out a type of global variable HBITMAP HBITMAP HPALETTE and a type of global variable hPalette. These two variables will handle WM_PAINT message used to show a bitmap. Platform: |
Size: 12288 |
Author:郭宏阳 |
Hits:
Description: 下面的函数LoadBmpFile,其功能是从一个.bmp文件中读取数据(包括BITMAPINFOHEADER,调色板和实际图象数据),将其存储在一个全局内存句柄hImgData中,这个hImgData将在以后的图象处理程序中用到。同时填写一个类型为HBITMAP的全局变量hBitmap和一个类型为HPALETTE的全局变量hPalette。这两个变量将在处理WM_PAINT消息时用到,用来显示位图。该函数的两个参数分别是用来显示位图的窗口句柄,和.bmp文件名(全路径)。当函数成功时,返回TRUE,否则返回FALSE。-The following function LoadBmpFile, its function is from a. Bmp file to read data (including the BITMAPINFOHEADER, palette and the actual image data), its stored in a global memory handle hImgData, this hImgData will in the future plans used as treatment procedures. At the same time, fill out a type of global variable HBITMAP HBITMAP HPALETTE and a type of global variable hPalette. These two variables will be used for treatment WM_PAINT message, used to display bitmaps. The function of two parameters are used to display the bitmap handle of the window, and. Bmp file name (full path). When the function is successful, return TRUE, otherwise return FALSE. Platform: |
Size: 7168 |
Author:李战斌 |
Hits:
Description: bmp图片转换为gif .Option Explicit
Private Type RGBTRIPLE
rgbRed As Byte
rgbGreen As Byte
rgbBlue As Byte
End Type
Private Type RGBQUAD
rgbBlue As Byte
rgbGreen As Byte
rgbRed As Byte
rgbReserved As Byte
End Type
Private Type BITMAPINFOHEADER 40 bytes
biSize As Long
biWidth As Long
biHeight As Long
biPlanes As Integer
biBitCount As Integer
biCompression As Long
biSizeImage As Long
biXPelsPerMeter As Long
biYPelsPerMeter As Long
biClrUsed As Long
biClrImportant As Long
End Type-bmp image is converted to gif. Option ExplicitPrivate Type RGBTRIPLE rgbRed As Byte rgbGreen As Byte rgbBlue As ByteEnd TypePrivate Type RGBQUAD rgbBlue As Byte rgbGreen As Byte rgbRed As Byte rgbReserved As ByteEnd TypePrivate Type BITMAPINFOHEADER 40 bytes biSize As Long biWidth As Long biHeight As Long biPlanes As Integer biBitCount As Integer biCompression As Long biSizeImage As Long biXPelsPerMeter As Long biYPelsPerMeter As Long biClrUsed As Long biClrImportant As LongEnd Type Platform: |
Size: 32768 |
Author:jiao |
Hits:
Description: 位图的存取在vc中的 因为所在的项目中我负责的模块是有关与位图的读写和存储的,所以看了一些资料后,并且成功在vc 下实现所需的功能后写下这篇读书报告。
对于位图,要想在vc中实现读取和存储,先必须了解BMP的文件格式。
BMP文件大体上分成四个部分:位图文件头,位图信息头,调色板,实际的位图数据。
位图文件头BITMAPFILEHEADER是一个结构,它的定义如下:
typedef struct tagBITMAPFILEHEADER{
WORD bfType
DWORD bfSize
WORD bfReserved1
WORD bfReserved2
DWORD bfOffBits
}BITMAPFILEHEADER实现-Bitmaps in vc access because of the projects where I am responsible for the module is concerned with reading and writing bitmap and storage, so read some information, and the success achieved in vc feature required to write This study reports. For bitmap, in order to achieve in the vc read and stored, first must understand the BMP file format. BMP files generally divided into four parts: the first bitmap file, BITMAPINFOHEADER, palette, the actual bitmap data. BITMAPFILEHEADER bitmap file header is a structure, it is defined as follows: typedef struct tagBITMAPFILEHEADER (WORD bfType DWORD bfSize WORD bfReserved1 WORD bfReserved2 DWORD bfOffBits ) BITMAPFILEHEADER to achieve Platform: |
Size: 187392 |
Author:lypdl |
Hits:
Description: 本程序要构造的位图为24位bmp格式,通过直接为结构体BITMAPFILEHEADER和BITMAPINFOHEADER赋值的方式生成。本程序演示的功能比较片面,但也比较实用。如果面对大量的数据,特别是二维的数组,可以尝试将它们写成图像,这样有助于发现规律。
压缩包中还有几个关于结构体说明的文档,可帮助理解。-This procedure to construct the bit picture shows the 24-bit bmp format, through direct BITMAPFILEHEADER for the structure and the way BITMAPINFOHEADER assignment is generated. This program demonstrates the function relatively one-sided, but also more practical. When faced with large amounts of data, especially in two-dimensional array, you can try to formulate them in the image, so help to identify the law. Compression package, several documents on the structure description can help to understand. Platform: |
Size: 695296 |
Author:yjt |
Hits:
Description: 在windows编程中,很多图片信息,都是基于windows系统所谓的DIB(设备无关位图)的结构,其定义在结构体 BITMAPINFOHEADER 中。本方法可以讲 windows 定义的DIB 结构和Opencv内部定义的IPLImage结构做相互转化。 -In windows programming, lots of pictures of information, are based on the windows system called DIB (device-independent bitmap) structure, which is defined in the BITMAPINFOHEADER structure. This method can tell windows DIB defined within the definition of the structure and Opencv do IPLImage structure into each other. Platform: |
Size: 2048 |
Author:超 |
Hits:
Description: BMP位图包括位图文件头结构BITMAPFILEHEADER、位图信息头结构BITMAPINFOHEADER、位图颜色表RGBQUAD和位图像素数据四部分。处理位图时要根据文件的这些结构得到位图文件大小、位图的宽、高、实现调色板、得到位图像素值等等。这里要注意的一点是在BMP位图中,位图的每行像素值要填充到一个四字节边界,即位图每行所占的存储长度为四字节的倍数,不足时将多余位用0填充-BMP bitmap file bitmap header structure, including BITMAPFILEHEADER, bitmap information header structure BITMAPINFOHEADER, color table RGBQUAD bitmap and the bitmap pixel data of four parts. When dealing with bitmap these structures are based on the file size of bitmap files, bitmap width, height and realize the palette to get the bitmap pixel values and so on. Here we must note that in the BMP bitmap, bitmap pixels per line to fill a four-byte boundary, the share of the throne map storage length of each line is a multiple of four bytes, extra bits will be used less 0 filled Platform: |
Size: 69632 |
Author: |
Hits:
Description: 从一个.bmp文件中读取数据(包括BITMAPINFOHEADER,调色板和实际图象数据),将其存储在一个全局内存句柄hImgData中,这个hImgData将在以后的图象处理程序中用到。同时填写一个类型为HBITMAP的全局变量hBitmap和一个类型为HPALETTE的全局变量hPalette。这两个变量将在处理WM_PAINT消息时用到,用来显示位图。该函数的两个参数分别是用来显示位图的窗口句柄,和.bmp文件名(全路径)。当函数成功时,返回TRUE,否则返回FALSE。-From a. Bmp file to read data (including BITMAPINFOHEADER, palette and the actual image data), store it in a global memory handle hImgData, this hImgData in later image processing procedures used. Also fill in a global variable of type HBITMAP hBitmap and a global variable of type HPALETTE hPalette. These two variables will be used when handling the WM_PAINT message, used to display bitmap. The function of the two parameters are used to display the bitmap window handle, and a. Bmp file name (full path). When the function is successful, returns TRUE, otherwise returns FALSE. Platform: |
Size: 1024 |
Author:刘旭 |
Hits: