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
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










