Find the answer to your Linux question:
Results 1 to 5 of 5
Is there a GDI or something of the sort in linux?...
  1. #1
    Just Joined!
    Join Date
    Oct 2011
    Posts
    2

    Windows GDI Linux Equivalent

    Is there a GDI or something of the sort in linux?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,956
    There are a number of libraries that provide similar services to the Windows Graphics Device Interface (GDI). Of course, there are the low-level X windows API's, as well as more current API's such as GTK, GTK+ (used with Gnome window managers), and Qt (used with KDE). So, there are a lot of roads that lead to Rome. What are you trying to accomplish?
    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, or in a galaxy far, far away.
    Posts
    8,956
    BTW, for the low-level X-window interfaces and API's, there are at least 9 volumes that take up about 2 linear feet of shelf space...
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. #4
    Just Joined!
    Join Date
    Oct 2011
    Posts
    2
    Im trying to create an offscreen BITMAP and use GDI to paint on it. Unfortunately GDI is only for Windows.

  5. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,956
    These are called frame buffers and X windows can certainly support what you want. You need to do some reading to find out how to create such double buffers and how to switch one for the other quickly. All current video hardware has support for that, and you should be able to use the video RAM to do it, resulting in very efficient performance.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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