|
-
Jun 24th, 2008, 06:49 AM
#1
Thread Starter
Member
[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
-
Jun 24th, 2008, 07:37 AM
#2
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:
Dim newBitmap As Bitmap = New Bitmap(2110, 600, Imaging.PixelFormat.Format32bppRgb)
Dim g As Graphics = Graphics.FromImage(newBitmap)
g.DrawImage(SomeImage, 0, 0)
g.Dispose()
-
Jun 24th, 2008, 08:11 AM
#3
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|