all groups > vb.net upgrade > august 2006 >
You're in the

vb.net upgrade

group:

How to merge images in vb.net



How to merge images in vb.net sat
8/18/2006 12:27:42 AM
vb.net upgrade: Hi to all,
Here i hav 4 images in my folder,all the images are smaller in
size,and my program is wen i click the button,all the images are stored
on either picturebox or imageviewer i.e all 4 images are shown in one
picturebox.
Wen i click another button 4 save the entire image as a single .jpg
or .bmp or .tif etc
but how to proceed the task.
Here i hav taken binarystream and i tried but iam not getting...plzz
give me the idea to proceed.
thank in advance...........
with regards
satish.k
Re: How to merge images in vb.net Herfried K. Wagner [MVP]
8/20/2006 10:33:12 PM
"sat" <satish4u.knr@gmail.com> schrieb:
[quoted text, click to view]

\\\
Dim b As New Bitmap(...)
Dim g As Graphics = Graphics.FromImage(b)
Dim bmp1 As Image = Image.LoadFrom(...)
Dim bmp2 As Image = Image.LoadFrom(...)
g.DrawImage(bmp1, ...)
g.DrawImage(bmp2, ...)
b.Save(...)
g.Dispose()
b.Dispose()
bmp1.Dispose()
bmp2.Dispose()
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
AddThis Social Bookmark Button