Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8714679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:39:23+00:00 2026-06-13T05:39:23+00:00

This is a project that our university is asking us to go through (asking

  • 0

This is a project that our university is asking us to go through (asking for help on third places is not restricted)
We have to build a 3D scene in which objects are mapped with textures.

I’m stuck where I need to load a BMP file’s data into the program.
We have to use a library that is already present in the system (forbidden to code it).

My request is :
Using fedora (gnome environment), is there a pre-built library into which a function that loads BMP files and returns a pointer to the payload is existent ?

EDIT : We are forbidden to install any additional libs, the lib must be a pre-built lib of Fedora.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T05:39:24+00:00Added an answer on June 13, 2026 at 5:39 am

    Take a look at the GDK library and the funcion gdk_pixbuf_new_from_file. As you can see in the API you can use:

    GdkPixbuf *bmp_pixbuf;
    GError *error = NULL;
    bmp_pixbuf = gdk_pixbuf_new_from_file ("/tmp/myfile.bmp", &error);
    if (bmp_pixbuf == NULL) {
        /* Error codes are GDK_PIXBUF_ERROR and G_FILE_ERROR */
    }
    

    It’s important to check first the BMP support in GDK using:

    $ gdk-pixbuf-query-loaders-64 | grep bmp
    

    You need a library like libpixbufloader-bmp.so.

    I don’t know what library are you using to create the 3D scene, but you can get the raw pixels after load the pixbuf with gdk_pixbuf_get_pixels and then load into a surface.

    Hope this help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have taken over a project that was build from suggestions in this Dan
We have a project that includes all of our re-usable classes, third-party library JARs
I have been handed this project that has a large number of issues with
I have this project that it's due in a few hours and I still
I have a Silverlght library project that produces a dll output. This project utilises
We have a project that’s using many C++11 facilities, and we thought about this
I have a project that I am trying to convert to OSGi. However, this
I'm currently self-studying C for mastering an university project. In that project we have
We have a service in our project that runs and we need it to
The Problem: In have a process that builds our executable. Before running the build

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.