Results 1 to 12 of 12

Thread: 3 (three) questions!

  1. #1

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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?
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  2. #2
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544
    1: Use the Windows Media player plug-in for VB
    2: ?
    3: I think you can create AVI's with Macromedia Flash

    Good luck!
    razor
    Software Engineer Student, Aalborg University, Denmark
    http://www.cs.auc.dk

    My email at AUC: will get a new email soon
    My website: http://www.razorsoftware.net


    Windows XP Pro/ Gentoo Linux (Laptop)
    Windows XP Pro (Home PC)

  3. #3
    Addicted Member
    Join Date
    Aug 2000
    Location
    Croatia
    Posts
    200
    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!

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Check out the DMA example at http://www.ur.co.nz/
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5
    Lively Member
    Join Date
    Mar 2000
    Posts
    115
    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.
    Vuen

  6. #6
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    OMG = Oh my god ???

  7. #7
    Lively Member
    Join Date
    Mar 2000
    Posts
    115
    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.
    Vuen

  8. #8

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Is stretch/setdibits and getdibits faster than getbitmapbits and setbitmapbits?

    (and could I have an example for them?)
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  9. #9
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    most programs that can make animated gif's can also make .avi.

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  10. #10
    Lively Member
    Join Date
    Mar 2000
    Posts
    115
    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! )
    Vuen

  11. #11
    Lively Member
    Join Date
    Jun 2000
    Posts
    124

    Cool This may be a little of topic, but...

    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?
    On Error Resume Screaming...

  12. #12

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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...
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width