I have to go to a meeting. But I will check code and see you tomorrow.
Main Topics
Browse All TopicsI have searched and can only find a saveadd to tiff. Looking for a way to add or append or something; to save two or more Bmps or jpegs together. Working in VB.Net.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Try this One:
Private Sub cmdAppend_Click()
Dim strOrigFile, strAppendFile As String
Dim lngPgCount As Long
'This is the displayed image to which we are appending.
ImgAdmin1.Image = "D:\image2\original.tif"
'Because we are using the dialog box to pick the file for append,
'we need to save the original file.
strOrigFile = ImgAdmin1.Image
ImgAdmin1.DialogTitle = "Select the file to be appended to the
displayed image"
ImgAdmin1.ShowFileDialog OpenDlg
strAppendFile = ImgAdmin1.Image
'Restore the original filename to the Image property because
'the property must contain the destination file name.
ImgAdmin1.Image = strOrigFile
'Append 3 pages starting with page 1.
ImgAdmin1.Append strAppendFile, 1, 3
End Sub
http://msdn.microsoft.com/
Regards,
Aeros
dim imgOut as image = New Bitmap(2 * imgFile1.Width, imgFile1.Height)
Dim g As Graphics = Graphics.FromImage(imgOut)
**** I am not happy that you left this part of the code out of your post.
It took me 3 days the search your different codes on the internet to find the missing link.
But all in all you do get the points.
Business Accounts
Answer for Membership
by: ramesh12Posted on 2004-07-30 at 13:29:49ID: 11681120
dim imgFile1 as image= Bitmap.FromFile(yourFileNa me1) FileName2)
1,320,240) 2,320,240)
dth - (sourceWidth * nPercent)) / 2) ight - (sourceHeight * nPercent)) / 2)
) hoto.Horiz ontalResol ution, imgPhoto.VerticalResolutio n)
) ityBicubic
, New Rectangle(destX, destY, destWidth, destHeight), New Rectangle(sourceX, sourceY, sourceWidth, sourceHeight), GraphicsUnit.Pixel)
dim imgFile2 as image=Bitmap.FromFile(your
imgFile1=fixedsize(imgFile
imgFile2=fixedsize(imgFile
dim imgOut as image = New Bitmap(2 * imgFile1.Width, imgFile1.Height)
If Not imgFile1 Is Nothing Then g.DrawImage(imgFile1 , New Rectangle(0, 0, imgFile1.Width, imgFile1.Height), New Rectangle(0, 0, imgFile1.Width, imgFile1.Height), GraphicsUnit.Pixel)
If Not imgFile1 Is Nothing Then g.DrawImage(imgFile2, New Rectangle(imgFile1.Width, 0, imgFile2.Width, imgFile2.Height), New Rectangle(0, 0, imgFile1.Width, imgFile1.Height), GraphicsUnit.Pixel)
imgOut.Save(to your required place (either stream or file), ImageFormat.Jpeg)
Private Function FixedSize(ByVal imgPhoto As Image, ByVal Width As Integer, ByVal Height As Integer) As Image
Dim sourceWidth As Integer = imgPhoto.Width
Dim sourceHeight As Integer = imgPhoto.Height
Dim sourceX As Integer = 0
Dim sourceY As Integer = 0
Dim destX As Integer = 0
Dim destY As Integer = 0
Dim nPercent As Single = 0
Dim nPercentW As Single = 0
Dim nPercentH As Single = 0
nPercentW = (CType(Width / CType(sourceWidth, Double), Double))
nPercentH = (CType(Height / CType(sourceHeight, Double), Double))
If nPercentH < nPercentW Then
nPercent = nPercentH
destX = System.Convert.ToInt16((Wi
Else
nPercent = nPercentW
destY = System.Convert.ToInt16((He
End If
Dim destWidth As Integer = CType((sourceWidth * nPercent), Integer)
Dim destHeight As Integer = CType((sourceHeight * nPercent), Integer)
Dim bmPhoto As Bitmap
bmPhoto = New Bitmap(Width, Height, PixelFormat.Format24bppRgb
bmPhoto.SetResolution(imgP
Dim grPhoto As Graphics = Graphics.FromImage(bmPhoto
grPhoto.Clear(Color.White)
grPhoto.InterpolationMode = InterpolationMode.HighQual
grPhoto.DrawImage(imgPhoto
grPhoto.Dispose()
Return bmPhoto
End Function