Results 1 to 3 of 3

Thread: [2005] Image Creation from another images

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2007
    Posts
    58

    [2005] Image Creation from another images

    I have to create an application that stitches more images into a big one
    I have the code below that creates the final big image with the correct height and width.

    Dim newBitmap = New Bitmap(2110, 600, Imaging.PixelFormat.Format32bppRgb)
    Dim g = Graphics.FromImage(newBitmap)
    g.FillRectangle(New SolidBrush(Color.White), New Rectangle(0, 0, 2110, 600))
    newBitmap.Save("aaa.jpg")

    I only have to put each small image into the big image and that exactly I dont know how to do.

    Can anyone please guide me on this

    Thanks

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [2005] Image Creation from another images

    First off, a very important thing, turn Option Strict ON.
    Secondly, you'd draw each image onto the bitmap using a graphics object:
    VB.NET Code:
    1. Dim newBitmap As Bitmap = New Bitmap(2110, 600, Imaging.PixelFormat.Format32bppRgb)
    2.         Dim g As Graphics = Graphics.FromImage(newBitmap)
    3.         g.DrawImage(SomeImage, 0, 0)
    4.         g.Dispose()
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3
    New Member
    Join Date
    Jun 2008
    Posts
    15

    Re: [2005] Image Creation from another images

    Hi makko,

    The code I have so far is in this thread.>>

    http://www.vbforums.com/showthread.p...48#post3265848




    Regards,

    John

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width