
Palette Problems in 256 Color Mode
Quote:
Novakowski) writes:
>Hi,
>I am having problems in Visual Basic 4.0 on a 256 color display. The
colors
>are getting messed up by the system somehow. Here is the situation:
>- one form has a 256 color bitmap (BMP) (61 unique)
>- in this form we have (at the same time) a picturebox control that
> displays an AVI animation using the MCI control
>The Problem:
>Once the animation starts to play the first frame of the animation,
the
>colors in the background picture AND the picturebox both get messed
up. For
>all the other frames, the colors appear normal until it reaches the
end, and
>then the colors get messed up again on the last frame.
>The total unique colors we have in the form is 159.. so why is Windows
>messing them up?
>Any help or tips would be very appreciated! Thanks..
Because the video palette doesn't match the palette of the graphic.
You can adjust the graphics to match the palette of the video by
applying the codec's unique 256 color palette.
The .pal's or .dib's of these codec's palettes are available from Intel
or Radius, or on the major online services.
Alternately, you could render the videos down to 256 color using rle
encoding, or by using MSVideo1 codec and applying the same palette as
the surrounding graphics.
Rich Mason
Stargazer Multimedia
Memphis, TN