|
-
Oct 14th, 2002, 11:35 AM
#1
Thread Starter
Lively Member
i did use stretchblt for playing the AVI movie frame by frame, well i didn't find any prob with the speed(maybe coz they where small files), but if there is any other better way to do this other than using the MCI control then plz let me know.
theres a new problem now.
The image being displayed shifts a bit to the right having some part of the images right side to be displayed on the left.
And the other problem is with the color, BMP files have each pixel represented as BGR in the file (i guess the same happens with AVI also), thats why i'm not getting the colors right when the bitmap is displayed in the picturebox. How can i change the bits from BGR to RGB or vice-vresa.
well i have made a mistake in representing the steps in which
i got the bitmap from memory to the picturebox,
thats the step 3
selectobject(someDC, bmp)
actually theres a step before this i.e. to get a handle to the bitmap using some function called CreateBitmap or something
hBMP = CreateBitmap..(bmp)
then i selected the bitmap
selectobject(someDC, hBMP)
Last edited by jayantkumble; Oct 14th, 2002 at 11:44 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|