Direct2D Tutorial 8: Loading an Image @WhatsACreel
Direct2D Tutorial 8: Loading an Image  @WhatsACreel
Uploaded June 2015 | Updated September 2026, 2 weeks ago
Hello, we've reached 7k subscribers, Thanks all!

I'm changing the name of this video series to Direct2D since I've now started the Direct3D series.

Today we'll look at loading an image from a file. It's very long, but this is the recommended method at the moment. Basically, we use WIC (Windows Imaging Component) to read the file, then we convert it to a D2D1Bitmap, so we can render it with our render target.

Some of the parameters to the WIC functions are pretty obscure, I don't know what they mean. The purpose of the functions is more important than the details. If you'd like to read up on the functions, head over to MSDN (I've read these MSDN pages multiple times and these parameters are still utterly indecipherable :(

MSDN page:
msdn.microsoft.com/en-us/library/windows/desktop/dd756686%28v=vs.85%29.aspx



Become a patron and support What's a Creel programming vids on Patreon:
patreon.com/whatsacreel

FaceBook:
facebook.com/pages/WhatsaCreel/167732956665435
Direct2D Tutorial 8: Loading an Imagex64 Assembly Tutorial 61: AVX Negate 128bpp ImageNVIDIA CUDA Tutorial 5: Memory OverviewC++ Tutorial 24: Stringizing and ConcatenationFloating Point Bit Hacks Every Programmer Should Know (Including Fast Inverse Square Root - Quake)Answering Basic Assembly Language Questions - Assembly Language for BeginnersAre CPUs Getting Faster? (2009 AMD Phenom II vs 2018 Intel i7 8750H - Phenom 2 Benchmark)Direct2D Tutorial 6: Real Time Game LoopFixed Point Arithmetic 1: Intro to Fixed PointC++ Tutorial 5: While and Do While LoopsC++ Tutorial 10: Pointers Explained (Linked Lists vs Arrays Example)Modern x64 Assembly 16: Basic SIMD Floating Point Arithmetic
Creel |

Direct2D Tutorial 8: Loading an Image

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER