BMP IMAGE ROTATION WITH C/x86-64 HYBRID PROGRAMMING
- USE LINUX OS!
- ADD .BMP (BLACK-WHITE) IMAGE FILE TO MAIN DIRECTORY
- CHANGE FILE NAME IN project.c FILE:
int main(int argc, char* argv[])
{
imgInfo* pInfo;
if (sizeof(bmpHdr) != 62)
{
printf("Change compilation options so as bmpHdr struct size is 62 bytes.\n");
return 1;
}
if((pInfo = readBMP("eiti.bmp"))!=0) // <---- HERE
{
allocate_for_output(pInfo);
change_headder(pInfo);
...
- THROUGH SYSTEM CONSOLE CHANGE DIRECTORY TO PROJECT'S DIR AND TYPE:
- RESULT IMAGE IS IN result.bmp FILE