G
Guest
Hello,
I have a function that accepts an Image as the input. Currently, I load a
bitmap in the calling class and pass that in. I'd like to create an overlay
with another image and then pass the resulting bitmap in to the
aforementioned function for it to finish everything.
The problem I'm having is that after I combine the two images, I am left
with a Graphics object. I can't do a g.DrawImage at this point. I know I can
save it to a file first, but I'd rather avoid that since once it is created
and used, it isn't needed anymore. Is there any way to get a bitmap out of
the Graphics object without saving it to a file first? If not, I can always
modify the function to accept two images instead of one, but I'd rather avoid
that if possible.
Thanks,
Frij
I have a function that accepts an Image as the input. Currently, I load a
bitmap in the calling class and pass that in. I'd like to create an overlay
with another image and then pass the resulting bitmap in to the
aforementioned function for it to finish everything.
The problem I'm having is that after I combine the two images, I am left
with a Graphics object. I can't do a g.DrawImage at this point. I know I can
save it to a file first, but I'd rather avoid that since once it is created
and used, it isn't needed anymore. Is there any way to get a bitmap out of
the Graphics object without saving it to a file first? If not, I can always
modify the function to accept two images instead of one, but I'd rather avoid
that if possible.
Thanks,
Frij