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
-
The CSS frameworks here offer designers a structure going into their projects, so they aren’t starting entirely from scratch. Some offer lay...
-
Here is the working script for PHP Mailer in GoDaddy Hosting, include("includes/class.phpmailer.php"); date_default_timez...
-
Holograms have long been a staple of science fiction, but in recent years, they’ve become more of a reality than ever before. Thanks to adva...
-
C/2014 Q2 (Lovejoy) is a long-period comet discovered on 17 August 2014 by Terry Lovejoy using a 0.2-meter (8 in) Schmidt–Cassegrain telesc...
-
Elastic – Make your textareas grow This jQuery plugin makes your textareas grow and shrink to fit it’s content. It was inspired by the auto...
-
If you are a PC enthusiast, you know the value of customizing your setup to suit your style and preferences. One great way to do this is by ...
-
When Installing Office 2010 Beta some of you may have encountered this error message " The language of this installation package is no...
-
Have you ever come across old black and white videos and wondered what they would look like if they were in color? With the advancement of d...
-
1. Open the Firefox “config” page: click into the Firefox address location bar, and type about:config , press Enter. 2. Search the line br...
-
Similar Problem - I have installed XAMPP on a Windows machine but cannot seem to get my PHP5 extensions working. If I go to a page http:/...
No comments:
Post a Comment