Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Multiple bitmaps into one final image.

Multiple bitmaps into one final image.

Scheduled Pinned Locked Moved C#
graphicscsharptutorialquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    E3pO
    wrote on last edited by
    #1

    Hello, I've been messing around with some code for a long time and haven't been able to figure out how do to this.. I've messed around with the System.Drawing.Bitmap, and bitmap graphics... What I need is to get all of the images from a video file (i can do this myself, unless it's super easy to render every frame of an avi file?) and place each image on one large bitmap. Each image has to be converted to a power of 2 dimension (256x256, 512x256,1024x512, etc) and placed 1 blue pixel apart. Here is an image example.. First image,

    L C 2 Replies Last reply
    0
    • E E3pO

      Hello, I've been messing around with some code for a long time and haven't been able to figure out how do to this.. I've messed around with the System.Drawing.Bitmap, and bitmap graphics... What I need is to get all of the images from a video file (i can do this myself, unless it's super easy to render every frame of an avi file?) and place each image on one large bitmap. Each image has to be converted to a power of 2 dimension (256x256, 512x256,1024x512, etc) and placed 1 blue pixel apart. Here is an image example.. First image,

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Ok, interesting problem, but I don't understand - what are you having trouble with? It looks like you're well on your way of finishing it :confused: Is it just that the blue border is too big? (how did you make it?)

      E 1 Reply Last reply
      0
      • L Lost User

        Ok, interesting problem, but I don't understand - what are you having trouble with? It looks like you're well on your way of finishing it :confused: Is it just that the blue border is too big? (how did you make it?)

        E Offline
        E Offline
        E3pO
        wrote on last edited by
        #3

        Oh, I'm sorry. I need help with code to do that, That was just an example of what needs to happen. And here is code in VB i was working with awhile back, i'm not sure if it was ever finished.. loaded up in visual studio gives me the error Error 1 Overload resolution failed because no accessible 'DrawImage' can be called with these arguments: 'Public Sub DrawImage(image As System.Drawing.Image, x As Integer, y As Integer)': Value of type 'System.Drawing.Brush' cannot be converted to 'System.Drawing.Image'. 'Public Sub DrawImage(image As System.Drawing.Image, x As Single, y As Single)': Value of type 'System.Drawing.Brush' cannot be converted to 'System.Drawing.Image'. N:\XP\My Docs\My Documents\Visual Studio 2008\Projects\HaloVideo\****Video\Form1.vb 12 9 ****Video Dim img3 As New Bitmap(PictureBox1.Image.Height + PictureBox2.Image.Height, PictureBox1.Image.Width) Dim g As Graphics = Graphics.FromImage(img3) g.DrawImage(Brushes.Blue, 0, 0) g.DrawImage(PictureBox1.Image, 0, 0) g.DrawImage(PictureBox2.Image, PictureBox2.Image.Width + 1, 0) PictureBox3.Image = img3 But i need for C#, and i need it to actually do what i want it to do. lol I guess a way would to possibly have a blue background graphic and then overlay images ontop of it with 1 px distance from eachother?

        1 Reply Last reply
        0
        • E E3pO

          Hello, I've been messing around with some code for a long time and haven't been able to figure out how do to this.. I've messed around with the System.Drawing.Bitmap, and bitmap graphics... What I need is to get all of the images from a video file (i can do this myself, unless it's super easy to render every frame of an avi file?) and place each image on one large bitmap. Each image has to be converted to a power of 2 dimension (256x256, 512x256,1024x512, etc) and placed 1 blue pixel apart. Here is an image example.. First image,

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Sounds trivial to me. What have you tried ? Why are you creating bitmaps that are too big, if you only want one pixel borders ?

          Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups