Re: Cay you add a .gif or .png to a bitmap image taht altready exists?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: BluDog (news_at_nospam.bludog.net)
Date: 10/08/04


Date: Fri, 08 Oct 2004 13:29:36 +0100

On Fri, 8 Oct 2004 04:11:05 -0700, Niels Jensen
<NielsJensen@discussions.microsoft.com> wrote:

>I have a bitmap image that's around 640 x 480 pixels. I want to add some
>.gif or .png files to the image before displaying it in my application. Is
>there a way of doing this?

        Dim bmp As New Bitmap("C:\MyImage.jpg")
        Dim g As Graphics = Graphics.FromImage(bmp)
        g.DrawImage(Image.FromFile("C:\MyOtherImage.jpg"), 5, 5)
        PictureBox1.Image = bmp

Hope this helps

Blu.



Relevant Pages