"Enlarge" image

hi,
I want to resize an ofImage but keep its aspect ratio, as depicted in the attached image.

what is the fastest way to do this?

ofPixels.pasteInto?
or is this directly possible through calling setFromPixels or something like that?

thanks.