I am used to copying images and such between DC’s, but now I am trying to get a juce Image to a DC. I see how I can get the (I think) bitmap from an image, but placing it into a DC is proving difficult, and the documentation seems a little sparse on msdn. Purpose is so I can print it out.
There are a few steps I need to do, first I need to get the pixel per inch from the printer. I need to scale the image to match so it will be the same size on print as on screen. I would prefer to go the emf route and may end up doing that, but I already have what I need to print set using a Juce::Graphics, which, when subclassed, would make an excellent emf generator. EMF is far nicer as I don’t have to care what proportions the printer is and such, it handles that automatically. Still unsure how to get a Juce::Image to print however. I am attempting to print a report, no fancy graphics, and is excellently suited for EMF. So, does anyone have experience or thoughts on how to copy a juce image to a windows device context?