I've created this program as a part of a project 'Image Enhancer'. This Program can be used to check whether the given file is a valid BMP file or not. Just compile the source code and enter the absolute file path in the prompt. (Ex-c:\test\text.bmp)
//Checking and validation of an BMP ImageFile
#include<>
#include<>
#include<>
#include<>
#include<>
#include<>
#include<>
#define BMPTYPE (((WORD) 'M' << must="="'BM'" ex="c:\tc\text.bmp):" length =" strlen(inname);" i =" 0;">= 'a') && (inname[i] <= 'z')){
inname[i] = toupper(inname[i]);
}
}
//fpath=inname;
FILE *infp;
//strcpy( inname, argv[1]);
infp = fopen( inname, "r");
if( ! infp)
{
printf("\n Unable to open %s for input\n", inname);
printf("Try again..");
getch();
//main();
// exit(1);
}
printf("Verifying file....");
delay(1000);
bmp(infp);
fclose(infp);
printf("\nPress any key to exit\n");
getch();
// exit(0);
}
Subscribe to:
Post Comments (Atom)
Popular Posts
-
In today's digital age, creating an internet radio has become easier than ever before. With just a few simple steps, you can set up your...
-
The CSS frameworks here offer designers a structure going into their projects, so they aren’t starting entirely from scratch. Some offer lay...
-
Now i'm telling you on how to add a rich text editor inside a Text/HTML widget in a Wordpress Admin Panel - Widget Area. Here we are usi...
-
HTML Cheat Sheets HTML 5 Visual Cheat Sheet HTML5 Canvas Cheat Sheet HTML Cheat Sheet HTML Elements and Attributes HTML 5 Cheat Sheet HTML C...
-
1. TinyMCE TinyMCE is an open source (under the GNU Lesser General Public License ) rich-text editor released and maintained by Moxiecode...
-
If anyone using PostgreSQL may encounter Fatal error: Call to undefined function pg_connect() initially. This is because the PostgreSQL m...
-
Mood Boards Mood boards (also called inspiration boards) are a great tool for designers who work with clients who might not have a clear-cu...
-
global $COURSE, $USER; $context = get_context_instance(CONTEXT_COURSE,$COURSE->id); if (has_capability('moodle/legacy:student', ...
-
Google chrome is Popular these days and Most of us don,t know about the latest tips and Tricks that we can use with google chrome. Google st...
-
1. Include a Tagline A tagline is a statement or a motto that represents a company’s, or in our case a website’s, philosophy and mission. It...
No comments:
Post a Comment