User Profile

Collapse

Profile Sidebar

Collapse
abdul hanan
abdul hanan
Last Activity: May 1 '11, 03:02 PM
Joined: Apr 27 '11
Location: islamabad -pakistan
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • abdul hanan
    replied to i want to read image form c and compress it
    in C
    read and compress image

    Code:
    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    int i;
    char a;
    
    FILE*fptr;
     clrscr();
    fptr=fopen("C:\\h.jpg","r");
    
    while(1)
    {
     if(fgetc(fptr)!=EOF)
     {
    
       printf("%f",fgetc(fptr));
     }
    else
        {
    	break;
        }
    }
    getch();
    }
    ...
    See more | Go to post
    Last edited by Banfa; Apr 27 '11, 02:21 PM. Reason: Added [code]...[/code] tags round the code, please start using them.

    Leave a comment:


  • abdul hanan
    replied to How to read jpg file in C using turbo C
    in C
    i have almost same project. but i get image code on compiler when i write this code on another file.tht will nt work properly. habib can u show me tht how u read image.?
    See more | Go to post

    Leave a comment:


  • abdul hanan
    started a topic i want to read image form c and compress it
    in C

    i want to read image form c and compress it

    I want to read image form c and compress it on turbo c.

    Code:
    #include<stdio.h>
    #include<conio.h>
    void main()
    {
      FILE*fptr;
    	fptr=fopen("D:\\abc.jpg","r");
    	printf("%c",getc(fptr));
    }
    getch();
    }
    See more | Go to post
    Last edited by Meetee; Apr 27 '11, 06:00 AM. Reason: code tags added. Detail added. (Please add more details to your problem)
No activity results to display
Show More
Working...