Multiple bitmaps into one final image.
-
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,
-
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,
-
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?)
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?
-
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,
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