question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to load image!

See original GitHub issue

So, i want to draw a simple image

And its saying this: image

There is my code: `` using Raylib_cs;

namespace test { class Program { static void Main(string[] args) { Raylib.InitWindow(800, 480, “Hello World”);

        Image image = Raylib.LoadImage("assets/textures_image_loading.bmp");
        Texture2D texture = Raylib.LoadTextureFromImage(image);         

        Raylib.UnloadImage(image); 

        while (!Raylib.WindowShouldClose())
        {
            Raylib.BeginDrawing();
            Raylib.ClearBackground(Color.WHITE);

            Raylib.DrawTexture(texture, texture.width, texture.height, Color.WHITE);

            Raylib.DrawText("Hello, world!", 12, 12, 20, Color.BLACK);

            Raylib.EndDrawing();
        }

             Raylib.CloseWindow();
           }
       }
    }

``

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ChrisDillcommented, Feb 27, 2021

Then it most likely failing to find the file. By default it loads from the output directory so try putting the assets folder in there and see if it finds it.

0reactions
zalnaRscommented, Feb 28, 2021

Its works! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to load image · Issue #8701 · snipe/snipe-it
After updating to v5.0.4 from v4.9.5, all the images - including favicon and logo fail to load. When you upload a new image...
Read more >
Failed to load images and attached images in Jira ticket
Hi community, I have experienced the "failed to load image" issue, searched around and advised that I should set personal setting to get....
Read more >
Failed to load image on mobile : r/discordapp
So all the image on any of my server can't be loaded on mobile, but it does load on my PC with the...
Read more >
How To Fix "Failed To Load Photo In SD Card" Error?
How To Fix “Failed To Load Photo In SD Card” Error? · Check SD Card Connection · Use Anti-virus Software · Check Compatibility...
Read more >
Failed to load image with PTD2D. - photools.com
I have just checked the HEIF/HEIC images files (about 50, from different devices and users) in my sample library. Some files fail to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found