Menu Home

linux下使用C语言生成bitmap

#ifndef SAVEBMP_H
#define SAVEBMP_H

#include <stdio.h>
#include <stdlib.h>

typedef long LONG;
typedef unsigned char BYTE;
typedef unsigned int DWORD;
typedef unsigned short WORD;
typedef struct {
    WORD bfType;
    DWORD bfSize;
    WORD bfReserved1;
    WORD bfReserved2;
    DWORD bfOffBits;
} BMPFILEHEADER_T;

typedef struct {
    DWORD biSize;
    DWORD biWidth;
    DWORD biHeight;
    WORD biPlanes;
    WORD biBitCount;
    DWORD biCompression;
    DWORD biSizeImage;
    DWORD biXPelsPerMeter;
    DWORD biYPelsPerMeter;
    DWORD biClrUsed;
    DWORD biClrImportant;
} BMPINFOHEADER_T;

void Snapshot(BYTE *pData, int width, int height, char *fileName, DWORD size);

#endif // SAVEBMP_H

14 replies

  1. My spouse and i got quite glad that Jordan managed to complete his investigation with the ideas he came across using your web page. It is now and again perplexing to just happen to be freely giving guidelines many people might have been trying to sell. We grasp we now have the website owner to thank because of that. The main illustrations you have made, the straightforward web site menu, the relationships you can give support to instill – it is many fantastic, and it is helping our son in addition to us reason why that situation is amusing, and that’s rather important. Many thanks for the whole thing!

  2. Thanks so much for providing individuals with such a terrific opportunity to read articles and blog posts from this site. It really is so nice and stuffed with a great time for me personally and my office fellow workers to visit your site at least thrice a week to see the new tips you have got. Of course, I’m also certainly fulfilled with all the unbelievable tips served by you. Selected 1 facts in this post are completely the most beneficial I have had.

  3. I have to express thanks to this writer for rescuing me from this type of condition. As a result of researching throughout the internet and meeting basics which were not powerful, I was thinking my life was done. Being alive without the presence of strategies to the problems you’ve fixed through your main report is a critical case, and ones that would have in a negative way damaged my career if I had not encountered your web blog. That competence and kindness in taking care of a lot of stuff was vital. I’m not sure what I would have done if I hadn’t encountered such a solution like this. I am able to at this point look ahead to my future. Thanks very much for the skilled and effective guide. I will not be reluctant to endorse your web site to anybody who desires care on this problem.

  4. I needed to draft you that little word so as to say thanks a lot again regarding the awesome basics you have documented above. It has been certainly wonderfully open-handed with you to give extensively what a number of people might have distributed as an ebook in order to make some money for themselves, precisely since you might well have tried it if you ever decided. These concepts additionally served to be the easy way to be sure that many people have a similar passion really like my very own to understand way more in terms of this issue. Certainly there are millions of more pleasurable instances up front for folks who start reading your blog.

  5. I simply desired to thank you so much all over again. I do not know the things that I could possibly have created in the absence of the actual concepts shared by you about such area. It became a scary setting in my circumstances, but spending time with a new expert way you solved it made me to leap over happiness. I’m just happy for the assistance and thus expect you are aware of a great job your are carrying out educating men and women through the use of your blog post. More than likely you have never met all of us.

  6. My wife and i ended up being so delighted that Jordan could carry out his investigation from the ideas he grabbed while using the blog. It’s not at all simplistic to simply possibly be offering key points which usually other people have been selling. We really acknowledge we now have the writer to give thanks to because of that. All the illustrations you have made, the simple blog menu, the relationships you assist to foster – it’s most amazing, and it’s letting our son and our family consider that this content is pleasurable, which is especially vital. Many thanks for all!

  7. I as well as my guys happened to be reading through the best helpful tips from the blog and so the sudden I had a terrible suspicion I never thanked the site owner for those tips. Most of the young boys happened to be as a consequence joyful to read all of them and now have surely been tapping into these things. I appreciate you for indeed being indeed considerate and then for finding variety of impressive areas millions of individuals are really desirous to learn about. Our own sincere apologies for not expressing gratitude to earlier.

  8. I in addition to my buddies ended up viewing the best techniques on your web page and so all of a sudden I got a horrible suspicion I had not expressed respect to the website owner for those techniques. Those ladies had been for that reason thrilled to read them and have sincerely been taking pleasure in those things. Thanks for simply being considerably kind and for making a choice on such cool topics most people are really desirous to learn about. My very own sincere apologies for not expressing appreciation to you sooner.

  9. I simply needed to say thanks again. I do not know what I could possibly have implemented in the absence of the actual solutions revealed by you concerning that subject matter. This has been a depressing case in my position, but observing a skilled approach you treated that made me to weep with gladness. I will be grateful for this work as well as pray you know what an amazing job you were putting in teaching men and women all through a web site. Probably you have never come across all of us.

  10. I wish to express some appreciation to the writer just for rescuing me from this type of challenge. After searching throughout the search engines and obtaining ways which are not pleasant, I believed my entire life was over. Being alive without the presence of strategies to the issues you have solved by means of this guide is a critical case, as well as those which may have badly affected my career if I hadn’t discovered your web site. Your own personal expertise and kindness in dealing with all the details was priceless. I’m not sure what I would have done if I had not come across such a thing like this. It’s possible to now look ahead to my future. Thanks a lot so much for the skilled and sensible guide. I will not be reluctant to endorse the blog to any individual who should receive guide about this subject.

  11. I am only commenting to make you know of the impressive encounter our daughter obtained visiting your site. She mastered lots of issues, which included what it is like to possess an incredible giving heart to let other people without problems know precisely a variety of problematic topics. You truly exceeded our expectations. Many thanks for rendering the necessary, safe, edifying and as well as cool guidance on this topic to Janet.

  12. A lot of thanks for your whole efforts on this web page. My mother really loves carrying out investigation and it is obvious why. Most people hear all about the dynamic method you create advantageous information through the web site and inspire contribution from some others on the article so our own daughter has always been discovering a great deal. Take pleasure in the remaining portion of the new year. You are carrying out a splendid job.

  13. I am just writing to make you understand of the incredible experience my princess went through going through your web site. She came to find a lot of issues, with the inclusion of how it is like to have a great coaching nature to let men and women completely fully grasp a variety of advanced issues. You really exceeded our desires. Thank you for producing the good, trustworthy, informative as well as easy thoughts on that topic to Jane.

  14. I would like to show some appreciation to this writer for bailing me out of this condition. Just after exploring through the search engines and meeting basics that were not pleasant, I believed my entire life was over. Living devoid of the solutions to the difficulties you have fixed all through your website is a serious case, and the kind that could have adversely affected my entire career if I hadn’t encountered the website. Your talents and kindness in taking care of all the details was helpful. I am not sure what I would have done if I had not discovered such a stuff like this. I can now relish my future. Thanks for your time so much for the specialized and results-oriented help. I will not think twice to endorse the website to anybody who should have tips on this situation.

Leave a Reply

Your email address will not be published.