Тёмный

Load .BMP Images in C 

Nick Walton
Подписаться 6 тыс.
Просмотров 9 тыс.
50% 1

Опубликовано:

 

11 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@UltimaN3rd
@UltimaN3rd Год назад
You should probably skip checking that image_data_address == 138 since that value is different depending on what software produced your bitmap. Sorry for that error.
@The12nit
@The12nit 2 года назад
AMAZING! Thank you, have been looking for a while for some good explanation on bmp files read in c, thank you so much!
@UltimaN3rd
@UltimaN3rd 2 года назад
You're welcome mate ☺️
@fakesocialdynamics9929
@fakesocialdynamics9929 3 месяца назад
where is you man, I'm waiting for your next episodes
@UltimaN3rd
@UltimaN3rd 3 месяца назад
@@fakesocialdynamics9929 Sorry for the long wait mate. Last year life got much busier for me, and RU-vid videos got shunted down the priority list. I'm still spending a lot of time coding and once I'm at a certain spot with that, I'll be making some more tutorials 😊👍
@SystemsDevel
@SystemsDevel 2 года назад
Small Game in C? YES PLEASE ☺️
@ohnocoder
@ohnocoder Год назад
Thank you! 😀
@UltimaN3rd
@UltimaN3rd Год назад
You're welcome mate 😊👍
@starc0w
@starc0w Год назад
awesome! 🙂
@1kvolt1978
@1kvolt1978 11 месяцев назад
There is a memory access violation error in memcpy(frame_pointer, sprite_pointer, sprite_byte_width); because you never allocated memory for frame.pixels.
@UltimaN3rd
@UltimaN3rd 11 месяцев назад
When I call CreateWindow, the WIndows API calls WindowProcessMessage with a WM_SIZE message (among other messages) which allocates frame.pixels. As far as I know this is always the case on Windows 10 and later. Are you on an earlier version of Windows?
@1kvolt1978
@1kvolt1978 11 месяцев назад
@@UltimaN3rd Oh, I see. My Win 7 backstabs me again. :)
@estebangarciagonzalez8360
@estebangarciagonzalez8360 11 месяцев назад
buenos dias me interesa su video pero me podria ayudar busnco una algoritmo que me muetre un simple bmp en 256 colores o de 32 bit pero sin transparencia simple, que se compatible con turbo c si se que es muy biejo pero ocupo que el programa final corra en dos, si usar un sistema operativo gracias
@starc0w
@starc0w Год назад
Why are you checking image_data_address for the value 138. The value should actually be 54, or am I wrong?
@UltimaN3rd
@UltimaN3rd Год назад
I found in the .bmp files produced by GIMP that it was 138. However that check should probably just be skipped in order to be more compatible. That was a mistake on my part.
@starc0w
@starc0w Год назад
@@UltimaN3rd Thank you for your prompt reply! Yes, indeed, the value fits in your picture. Photoshop mostly uses the value 54. However, it depends on what save options you use (in Photoshop). The value can indeed be different!
@stevenunderwood9935
@stevenunderwood9935 Год назад
Hey, I'm getting a debug error on line six from the ellipsis error: "expected a ')'" line: " PRINT_ERROR(a, args...) " ^ Do you know why this is? I'm using Visual Studio Code for my IDE, and Intelisense to code browse.
@UltimaN3rd
@UltimaN3rd Год назад
Which compiler are you using?
@michaelwheadon1078
@michaelwheadon1078 Год назад
I started to write a bitmap loader in "C" but got distracted along the way...attention span issues. drive.google.com/file/d/1YFZ4WKrJMh5uiwuqVx9mCi5Ep7mB0vU_/view?usp=sharing
@UltimaN3rd
@UltimaN3rd Год назад
Lol some odd stuff you got up to there with bitmaps 😅 It seems like you put quite a bit of effort into your video, so why'd you upload it to Google Drive instead of your RU-vid channel for anyone to watch?
@michaelwheadon1078
@michaelwheadon1078 Год назад
vid was to long ...no phone...off grid in woods...cheated ...again @@UltimaN3rd
@michaelwheadon1078
@michaelwheadon1078 Год назад
@@UltimaN3rd Thanks Nick...and I subscribed
@UltimaN3rd
@UltimaN3rd Год назад
@@michaelwheadon1078 Cheers mate, I hope my future videos don't disappoint!
Далее
Load .WAV Sound Files in C
3:03
Просмотров 6 тыс.
I made the same game in Assembly, C and C++
4:20
Просмотров 748 тыс.
why do header files even exist?
10:53
Просмотров 413 тыс.
BMP формат (пример кода)
31:55
Просмотров 12 тыс.
Making .BMP images from scratch
21:22
Просмотров 11 тыс.
Creating a Bitmap Image (.bmp) using C++ | Tutorial
22:28
Master Pointers in C:  10X Your C Coding!
14:12
Просмотров 314 тыс.
How to Make Pictures in C (bitmap images)
24:37
Просмотров 4,1 тыс.
Most Useful Constructs Across Programming Languages
8:33
My 2 Year Journey of Learning C, in 9 minutes
8:42
Просмотров 623 тыс.
Bitmap Images
6:36
Просмотров 77 тыс.
Premature Optimization
12:39
Просмотров 817 тыс.