Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


How to save multiple jpg images and text as one jpg?

How to save multiple jpg images and text as one jpg?

How to save multiple jpg images and text as one jpg?

I'm making a small Application where you can insert three pictures and that pictures will be the size of Picture Boxes.
As in the Image, Picture 1 is a jpg format and on it will be placed logo and information and it will never change(This image is format A4), other three pictures a user can added and it will be size of Picture Box.User also can add a text.
How to all these four images and text can be saved as one jpg?

RE: How to save multiple jpg images and text as one jpg?

It strikes me, given that screenshot, you should be able to use the CopyFromScreen method of theSystem.Drawing.Graphics class

RE: How to save multiple jpg images and text as one jpg?

So, assuming I've understood your description (and your picture) correctly, something like the following:


Public Class Form1
    Private Sub btnSave_Click(sender As System.Object, e As System.EventArgs) Handles btnSave.Click
        Dim g As Graphics = PictureBox1.CreateGraphics
        Dim s As Size = PictureBox1.Size

        Dim bmp As Bitmap = New Bitmap(PictureBox1.Width, PictureBox1.Height, g) ' create a compatible bitmap in memory
        Dim memoryg As Graphics = Graphics.FromImage(bmp) ' get a drawing surface associated with the compatible memory bitmap

        memoryg.CopyFromScreen(PointToScreen(PictureBox1.Location).X, PointToScreen(PictureBox1.Location).Y, 0, 0, s) ' scrape the screen
        bmp.Save("c:\example.jpg") ' or wherever
    End Sub
End Class 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close