karansher / computer-graphics-raster-images

Computer Graphics Assignment about Raster Images
1 stars 0 forks source link

Why the height and width is 0 and a huge number #18

Open sonnyffff opened 2 years ago

sonnyffff commented 2 years ago
image

I tried to print the height and width that passed from the function read_rgba_from_png. but I got this result, is that correct? Seems pretty strange.

Thanks in advance!

abhimadan commented 2 years ago

This means that it failed to read the image. How are you running the program?

sonnyffff commented 2 years ago

This means that it failed to read the image. How are you running the program?

I am on windows, and I ran cmake and it produces a makefile. And I use make everytime to compile the program. And run it use cmd console.

abhimadan commented 2 years ago

Are you running it from the build folder? Also, if it's producing a makefile then you probably aren't using Visual Studio. I hate to keep bringing this up but please try to set it up, since as mentioned in the FAQ, it will make future assignments much easier to set up.

sonnyffff commented 2 years ago

Are you running it from the build folder? Also, if it's producing a makefile then you probably aren't using Visual Studio. I hate to keep bringing this up but please try to set it up, since as mentioned in the FAQ, it will make future assignments much easier to set up.

Sure, I am looking into it right now, thanks!