LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-28-2009, 01:51 AM   #1
singh.vikas85
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Rep: Reputation: 0
Cool c++ in linux to read a PGM file (portable graymap) onto the memory and print hight


1.) programs in C++, preferably on UNIX to read a PGM file (portable graymap) onto the memory (1 dimensional or 2 dimensional array), and print the width and height of the image on the screen,
 
Old 04-29-2009, 11:24 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,928

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by singh.vikas85 View Post
1.) programs in C++, preferably on UNIX to read a PGM file (portable graymap) onto the memory (1 dimensional or 2 dimensional array), and print the width and height of the image on the screen,
What's your question??? Do you NEED one? Having problems WITH one? And do you need this for Unix or Linux? What version/distro?

PGM is installed as part of the netpbm software. Type in "man pgm".
 
Old 04-29-2009, 09:16 PM   #3
singh.vikas85
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thumbs up programming in Unix environment

Quote:
Originally Posted by TB0ne View Post
What's your question??? Do you NEED one? Having problems WITH one? And do you need this for Unix or Linux? What version/distro?

PGM is installed as part of the netpbm software. Type in "man pgm".
Thank you very much for the reply.

Unix programming environment is new for me.I can do programing in c,c++,dot.net...
My main problem is that I do not have any idea about netpbn.
Please suggest me the point from where I can start this assignment.
Thank you very much.
 
Old 04-30-2009, 09:20 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,928

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by singh.vikas85 View Post
Thank you very much for the reply.

Unix programming environment is new for me.I can do programing in c,c++,dot.net...
My main problem is that I do not have any idea about netpbn.
Please suggest me the point from where I can start this assignment.
Thank you very much.
Ok..but you still haven't answered my original questions.

- Is this for Unix or Linux? What version/distro??
- Are you having problems RUNNING it, or are you NEEDING it?

And I did "suggest you" a starting point, and asked questions. The PGM program is part of the netpbm software. Whatever version of linux you're using, if you install netpbm, you will have the pgm program installed. Run it from there.
 
Old 05-06-2009, 08:14 PM   #5
singh.vikas85
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Original Poster
Rep: Reputation: 0
C++ in UNIX to obtain height and width of a file from header

thank you very much for your reply.I work on Unix environment.


//Program that read a Plain PGM File into memory and display its height and width

Last edited by singh.vikas85; 05-13-2009 at 04:50 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to read print status file in embedded linux chiragshah Linux - Newbie 1 12-31-2008 01:16 AM
need a portable linux distro to bring on portable usb hard drive... pippo17 Linux - Distributions 3 10-20-2008 07:41 AM
Linux distributions and portable file formats eating Linux - Distributions 2 01-28-2006 09:19 AM


All times are GMT -5. The time now is 11:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration