VB.NET School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 307,220 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,677 people online right now. Registration is fast and FREE... Join Now!




Separate Frams to one Image.

 

Separate Frams to one Image.

a_eliran

30 May, 2009 - 02:39 AM
Post #1

New D.I.C Head
*

Joined: 30 May, 2009
Posts: 1

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:

CODE



        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

User is offlineProfile CardPM
+Quote Post


Posts in this topic
a_eliran   Separate Frams to one Image.   30 May, 2009 - 02:39 AM

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 10:27PM

Live VB.NET Help!

Be Social

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

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month