Hello. I kind of new to VB and API, so I'll ask this to you:

Can I use the loadpicture function to load an image from disc and then use Bitblt to copy it to a device context?

I want to do this because all my other graphics methods are API too, and they print on both screen and printer. So, it is very easy for me to just pass the hdc of the screen or printer without having to say:

If (targetdisplay=doPrinter) then
printer.paintpicture ...
printer.print "This text"
else
paintpicture ....
print "This text"
endif

See? Too repetitive