School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 340,163 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 4,036 people online right now. Registration is fast and FREE... Join Now!



Separate Frams to one Image.

Page 1 of 1

Separate Frams to one Image. Rate Topic: -----

#1 a_eliran  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 1
  • Joined: 30-May 09


Dream Kudos: 0

Post icon  Posted 30 May 2009 - 02:39 AM

Hi all i need help with project i've built with VB.Net
it's my first time handling with this code.

This project creates images with different sizes (5 images).
I handled very well with the images resize but now I need to create new large image that includes all the images i have saved before (5 images only).
They should be arranged side by side in any order, it doesn't matter how.
This is how the code looks like:



		Dim Frame, W, H As Integer
		Dim p As New PictureBox()
		W = 133
		H = 167
		For Frame = 1 To 5
			Dim bmp As New Bitmap(Form2.picImage1.Image, W, H)
			Form2.Show()
			bmp.Save(filename:="c:\" & Frame & ".bmp")
			W = W - 10
			H = H - 10
		Next Frame
		W = 10
		H = 20
		For Frame = 1 To 5
			p.Image = Image.FromFile(filename:="c:\" & Frame & ".bmp")
			p.Location = New Point(W, H)
			p.Show()

			W = W + 10
			H = H + 10
			Me.Controls.Add(p)
		Next Frame
		p.Image.Save(filename:="c:\Full.bmp")





Any solutions? :\

BTW, I'm using Microsoft visual studio 2008

Thanks a lot

This post has been edited by a_eliran: 30 May 2009 - 02:42 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month