Find the answer to your Linux question:
Results 1 to 5 of 5
i want to make a screen capture program for linux as my software engineering project but i am not getting from where to start.........i have a bit knowlege of gtk ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2010
    Posts
    13

    screen capture program using c/c++


    i want to make a screen capture program for linux as my software engineering project
    but i am not getting from where to start.........i have a bit knowlege of gtk and that of c/c++ but from where can i get other references which i should know for building it.......................
    plzz help ............

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,459
    Here is a link to a GTK tutorial to help you get started: http://www.di.ubi.pt/~jpaulo/ensino/IHC/gtktut.pdf
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,459
    Basically, you need to capture the frame buffer and convert it into an image format (jpeg, gif, bmp, tiff, svg, png, et al). You may need to drop into lower-level X calls to do that. Sorry, but I haven't done this sort of thing for almost 20 years so my memory is fuzzy on the exact technique, especially in light of todays' higher level graphical API's. Since the KDE snapshot tool is open sourced, you could review the code for that and find out how they do it. It works very well. You can get it as part of the kdegraphics package. However, since KDE uses Qt instead of GTK, you may have to learn something about that API.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. #4
    Just Joined!
    Join Date
    Feb 2011
    Location
    Ranchi , India
    Posts
    2
    Quote Originally Posted by sachinmcajnu View Post
    how can i make a screen shot application in c/c++ ..........
    i know little bit of interface making in gtk...............
    what else do i need

    please suggest.............
    please help
    Hi sachinmcajnu ,
    If you are working in c/c++ you can easily make an application to take screen shots using Qt library in c++.It's very easy to learn.Here is the link -> doc.qt.nokia.com/latest/desktop-screenshot.html

  5. #5
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Hello, sachinmcajnu

    Duplicate threads are not allowed because they become overly confusing to those trying to help you, so I've merged the three threads you started regarding this subject into a single thread. Please continue any discussion about this topic here only.

    Thank you.
    oz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •