Simulating Palette Animation on Non-Palette DisplaysID: Q130476
|
LAVALAMP is a sample application in the Microsoft Software Library that demonstrates how to simulate the effects of the AnimatePalette() function on devices that may not support palettes. This program also demonstrates how to create and manipulate dibsections. The following dibsection functions are used in LAVALAMP:
The following file is available for download from the Microsoft Software Library:
~ LAVALAMP.EXEFor more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
Q119591 How to Obtain Microsoft Support Files from Online ServicesWhen running in display modes that are not palette-based, many of the effects that can be performed easily with palette animation need to be reprogrammed. A simple method of simulating palette animation can be achieved by "animating" a device-independent bitmap's (DIBs) color table and redisplaying the DIB with the new colors. To demonstrate this technique, LAVALAMP creates an 8-bits-Per-Pixel (bpp) dibsection. Then it shifts each of the RGBQUAD data structures in the color table by one position to the left, and recycles the first entry in the color table to the last position. After each modification to the color table, the DIB is redisplayed.
Additional query words: technote BMP softlib kbgraphic kbfile
Keywords : kbfile kbgraphic kbNTOS350 kbSDKWin32
Version : winnt:3.5
Platform : winnt
Issue type : kbinfo
Last Reviewed: June 21, 1999