It's called Direct2D, not DirectX 2D. As far as I know Direct2D interoperates with DirectX(and uses it behind the scenes) but isn't actually a part of it.
You might want to read through the topics on this page:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd370990%28v=vs.85%29.aspx
In general the steps to render an image with Direct2D are as follows:
1) Create an ID2D1Factory object. See the examples here:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd371246%28v=vs.85%29.aspx
2) Via the ID2D1Factory interface, create a DC render target by calling the CreateDCRenderTarget() method.
3) Via the ID2D1DCRenderTarget interface, call the BindDC() method to associate the render target with the window DC. Every time the window size changes you need to call BindDC().
4) Via the ID2D1DCRenderTarget interface, create device-dependent resources, such as bitmaps and gradients, by calling the appropriate Create*() methods. One of the CreateBitmap() overloads allows you to create a Direct2D bitmap from a Windows Imaging Component(WIC) bitmap.
5) Via the ID2D1DCRenderTarget interface, render device-dependent resources by calling the appropriate Draw*() methods in between calls to the BeginDraw() and EndDraw() methods. If EndDraw() returns D2DERR_RECREATE_TARGET you need to re-create the render target and all device-dependent resources(not sure under what circumstances this happens).
WIC reference:
http://msdn.microsoft.com/en-us/library/windows/desktop/ee719902%28v=vs.85%29.aspx
Using WIC is a bit more complicated than Direct2D, but loading an image from disk is pretty simple. The example on this page shows how:
http://msdn.microsoft.com/en-us/library/windows/desktop/ee690281%28v=vs.85%29.aspx
That example shows how to get the frame count as some formats support multiple frames. Assuming windows has a codec installed you should be able to load any image format with WIC. To retrieve an actual frame you need to call the GetFrame() method of the IWICBitmapDecoder.
Additionally, to make the image compatible with Direct2D the pixel format has to be converted to 32bppBGRA. To do that you have to call the CreateFormatConverter() method of the IWICImagingFactory and then call the Initialize() method of the IWICFormatConverter().
I didn't include any code but you can look up all the interfaces and methods I mentioned on MSDN to find how to use them.