AnimatePalette
所属分类:屏幕保护
开发工具:C#
文件大小:37KB
下载次数:22
上传日期:2005-12-26 17:11:42
上 传 者:
jason98168
说明: 一个用C#编写的屏幕保护程序。动画不规律出现,达到屏幕保护功能
(a C# prepared by the screen saver. There is not animation law, the protection function to screen)
文件列表:
AnimatePalette\AnimatePalette.cs (14715, 2002-11-12)
AnimatePalette\AnimatePalette.csproj (4763, 2005-12-26)
AnimatePalette\AnimatePalette.csproj.user (1804, 2005-12-26)
AnimatePalette\animatepalette.jpg (10329, 2002-11-12)
AnimatePalette\AnimatePalette.resx (5324, 2002-11-12)
AnimatePalette\AnimatePalette.sln (913, 2005-12-26)
AnimatePalette\AnimatePalette.sln.old (924, 2002-11-12)
AnimatePalette\AnimatePalette.suo (7680, 2005-12-26)
AnimatePalette\bin\Debug (0, 2005-12-26)
AnimatePalette\bin (0, 2005-12-26)
AnimatePalette\obj\Debug (0, 2005-12-26)
AnimatePalette\obj (0, 2005-12-26)
AnimatePalette (0, 2005-12-26)
//-----------------------------------------------------------------------------
//
// Sample Name: AnimatePalette Sample
//
// Copyright (c) 1999-2000 Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
Description
===========
AnimatePalette demonstrates DirectDraw palette animation when in full-screen
on a palettized surface.
Path
====
Source: DXSDK\Samples\C#\DirectDraw\AnimatePalette
Executable: DXSDK\Samples\C#\DirectDraw\Bin
User's Guide
============
AnimatePalette requires no user input. Press the ESC key to quit the program.
Programming Notes
=================
For details on how to setup a full-screen DirectDraw app, see the FullScreenMode
sample.
To animate the palette on a palettized DirectDraw surface, call
Palette.GetEntries to retrieve the palette colors. Then every
frame (or as often as desired) alter this array as needed, then set the new palette
by first calling Device.WaitForVerticalBlank to synchronize the palette change to a
vertical blank, then call Palette.SetEntries.
近期下载者:
相关文件:
收藏者: