print a picture

This is a discussion on print a picture within the C++ Programming forums, part of the General Programming Boards category; http://www2.oakland.edu/biology/lindemann/model%20c.txt can u get from that code how printing is done?thx...

  1. #16
    Registered User
    Join Date
    May 2008
    Posts
    33
    http://www2.oakland.edu/biology/lindemann/model%20c.txt

    can u get from that code how printing is done?thx

  2. #17
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by moussa View Post
    I Want To Print A Picture
    Printing pictures is absolutely not trivial. In a Linux/Unix world, you'd probably be best off trying to form the image as a PostScript document first, then use the standard printing processing. Of course, that's probably a few hundred lines of code at the very least, quite likely more into the early thousands.

    The simplest way to print something in Linux would be to load it into an existing application and use it's print function - it allready has the code to do that.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #18
    Registered User
    Join Date
    May 2008
    Posts
    33
    Quote Originally Posted by matsp View Post
    Printing pictures is absolutely not trivial. In a Linux/Unix world, you'd probably be best off trying to form the image as a PostScript document first, then use the standard printing processing. Of course, that's probably a few hundred lines of code at the very least, quite likely more into the early thousands.

    The simplest way to print something in Linux would be to load it into an existing application and use it's print function - it allready has the code to do that.

    --
    Mats

    plz can u show me the code.thx

  4. #19
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    Quote Originally Posted by moussa View Post
    plz can u show me the code.thx
    No, he's not - nor is anyone else - going to write it for you. He just said it's a very complicated process. What makes you think people have time to dedicate to spoon feeding you a program?

    At the very least you have to a) find a library that provides this functionality, and b) link with that library and use it in your program. And no, I'm not going to post an example.
    Last edited by medievalelks; 05-28-2008 at 07:16 AM.

  5. #20
    Registered User
    Join Date
    May 2008
    Posts
    33
    you go to helll you idiot, this is tough work i need to achieve..

    lpr -Pcl203h test.txt


    printer name cl203h filename test.txt ...file test.txt is printed..is this all what i need?

    you stay out you fool named medievalks

  6. #21
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,010
    What that attitude you're not going to get any help.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #22
    Registered User
    Join Date
    May 2008
    Posts
    33
    I am sorry, but you know how working in thuis is tough. i apologise

  8. #23
    Banned
    Join Date
    Nov 2007
    Posts
    678
    But that does not involve C++ programing? Does it?

  9. #24
    Registered User
    Join Date
    May 2008
    Posts
    33
    i can use c++ or c ..doesnt matter

  10. #25
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    Quote Originally Posted by Elysia View Post
    What that attitude you're not going to get any help.
    I'm less concerned about that attitude than I am the prevailing one among beginners, that the way to learn is to ask someone to do all of your work for you. What is going on in our schools?

  11. #26
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,479
    Have you tried google? Somtimes trival problems are broken down and explained on websites.
    I'm just trying to be a better person - My Name Is Earl

  12. #27
    Banned
    Join Date
    Nov 2007
    Posts
    678
    I meant, that you just used an existing program lpr.
    While you were asking for, how to do it using C++.

    Now if you want it C++ way, you can use system() function.
    I hope Google will tell you more.

  13. #28
    Registered User
    Join Date
    May 2008
    Posts
    33
    well tell me the library that uses this..then let everything else on me ........ sakes

  14. #29
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,655
    Bravo, medievalelks, bravo.

  15. #30
    Registered User
    Join Date
    May 2008
    Posts
    33
    heck with schools

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to print an array like in this picture..
    By transgalactic2 in forum C Programming
    Replies: 20
    Last Post: 01-03-2009, 08:28 AM
  2. merging linked lists
    By scwizzo in forum C++ Programming
    Replies: 15
    Last Post: 09-14-2008, 06:07 PM
  3. Personal Program that is making me go wtf?
    By Submeg in forum C Programming
    Replies: 20
    Last Post: 06-27-2006, 01:13 AM
  4. Scope And Parameter Passing
    By djwicks in forum C Programming
    Replies: 6
    Last Post: 03-28-2005, 08:26 PM
  5. What kind of programs should I start writing?
    By Macabre in forum C++ Programming
    Replies: 23
    Last Post: 04-12-2003, 09:13 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21