How do I add a rasterized image (out from the whole PDF page) back as a new or replaced PDF page?

I need to add rasterized page level image back to PDF, but so that the image
would be the only element in that specific page, how to do that? Thanks in advance.

This seems to be covered (along with the sample code) in the following article:

How do I convert a PDF to rasterized (i.e. bitmap) PDF:

Thanks, I think I managed to do that with C++, partly. Can you provide example how to do that in-memory using GDI+, as I am now
rolling image back and forth onto disk, I could not find (easily) way to do the same as with the sample C# code.