Direct2D does not provide the interfaces to manipulate pixels, but you can use WIC(Direct2D also use WIC to manipulate bitmaps) instead.
- Call ID2D1Factory::CreateWicBitmapRenderTarget to get the render target data, this function will return the IWICBitmap interface.
- Use Lock or CopyPixels methods from this interface to get the pixel data.