HighTechTalks DotNet Forums  

How to merge images in vb.net

VB.net Upgrade microsoft.public.dotnet.languages.vb.upgrade


Discuss How to merge images in vb.net in the VB.net Upgrade forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
sat
 
Posts: n/a

Default How to merge images in vb.net - 08-18-2006 , 02:27 AM






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


Reply With Quote
  #2  
Old   
Herfried K. Wagner [MVP]
 
Posts: n/a

Default Re: How to merge images in vb.net - 08-20-2006 , 03:33 PM






"sat" <satish4u.knr (AT) gmail (DOT) com> schrieb:
Quote:
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.
\\\
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/>
V B <URL:http://classicvb.org/petition/>


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.