1. How do I read an AVI file?
2. Is there anything faster than get & setpixel for 1 pixel operations (not ddraw)
3. How do I write an AVI file?
Printable View
1. How do I read an AVI file?
2. Is there anything faster than get & setpixel for 1 pixel operations (not ddraw)
3. How do I write an AVI file?
1: Use the Windows Media player plug-in for VB
2: ?
3: I think you can create AVI's with Macromedia Flash
Good luck! :)
2. SetPixelV is faster than SetPixel because it doesn't return the color which it used to draw.
3. If you need to do this from your app, check out Wotsit (http://www.wotsit.org) for AVI file format.
Good luck with the third, I think you'll need it!
Check out the DMA example at http://www.ur.co.nz/
2. SetPixelV is also OMG slow. If I was you I would build a bitmap in memory with the api's variables (I don't have VB open right now so I can't get it to you) and then whenever you want to draw 1 pixels you can edit the array for the bitmap and then StretchDIBits it on. I don't know about getting pixels.
OMG = Oh my god ???
Yup. And OK ya know what you could do is whenever you want to edit the pixels, you can GetDIBits the piece of the picturebox you want to edit into the bitmap variables and then edit the bitmaps and SetDIBits or StretchDIBits it back on (that way it keeps the 'transparency', or what was around the thing you were editing cuz its not really a transparency.) In Lucky's site there's a tutorial called loading bitmaps from a custom binary resource file, if you read it you can copy those variables to know how to create a bitmap in memory and then experiment around to see what really works. I never actually tried anything I posted in this topic (except that SetPixelV is slow and .SetLockedPixel is also slow), I'm just saying what might work.
Is stretch/setdibits and getdibits faster than getbitmapbits and setbitmapbits?
(and could I have an example for them?)
most programs that can make animated gif's can also make .avi.
I don't know which is faster, you would have to go find some tutorials. The only one I use is StretchDIBits, and I don't actually use it myself, I cut and pasted code for it from Lucky's page (he said he doesn't care! :D)
Sastraxi, is your avatar a character from ChronoTrigger? It looks like the bad guy that joins your party, although I can't remember his name. Something with a V, maybe?
And Kedaman has the princess, right?
Yeah, he was a badguy that was summoning Lavos in 600 ad... but he joins the party. His name is Magus. But now my char is Dalton, from 32 000 BC... the guy that steals the Epoch...