Click to See Complete Forum and Search --> : 3 (three) questions!
Sastraxi
Feb 4th, 2001, 11:29 AM
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?
CyberCarsten
Feb 4th, 2001, 04:10 PM
1: Use the Windows Media player plug-in for VB
2: ?
3: I think you can create AVI's with Macromedia Flash
Good luck! :)
Arcom
Feb 4th, 2001, 04:25 PM
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!
kedaman
Feb 4th, 2001, 04:30 PM
Check out the DMA example at http://www.ur.co.nz/
Vuen
Feb 4th, 2001, 09:11 PM
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.
Fox
Feb 5th, 2001, 04:41 AM
OMG = Oh my god ???
Vuen
Feb 6th, 2001, 09:26 PM
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.
Sastraxi
Feb 7th, 2001, 07:27 PM
Is stretch/setdibits and getdibits faster than getbitmapbits and setbitmapbits?
(and could I have an example for them?)
sail3005
Feb 7th, 2001, 08:33 PM
most programs that can make animated gif's can also make .avi.
Vuen
Feb 8th, 2001, 10:02 PM
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)
DarkJedi9
Feb 9th, 2001, 01:54 PM
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?
Sastraxi
Feb 12th, 2001, 07:13 PM
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...
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.