资源描述:
《在vb应用软件中实现动画效果 (转)(implementing animation effects in vb applications)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、在vb应用软件中实现动画效果(转)(ImplementinganimationeffectsinVBapplications)Author:MeteorEmail:xxzxly@163.netDate:9/6/200111:45:08AMInthedevelopmentofVBapplications,andlaterjoinedtheanimationcanmakethesoftwarehasalivelyandvivideffect,inthepreparationofconfigurationsoftw
2、are,animationfunctionisessential,suchaschangesinthecapacityofthecontainer,andtheliquidlevelchanges,isarealanimation.IntheexpertsystemofthecentralstationoftheelectricfieldandconductivitymonitoringnetworkdevelopedbythespacecenteroftheChineseAcademyofSciences,
3、therearemanyanimationeffects,whicharebrieflydescribedasfollows.First,usetheAnimationcontrolInVB5.0,youcanuseAnimationcontrolstoanimate,asfollows:Private,Sub,Animation1_Click()WithCommonDialog1Filter=avi(*.avi)
4、*.avi"Thefilterspecifiesthetypeoffiledisplayedi
5、nthefilelistboxofthedialogbox.ShowOpenShowtheopendialogboxEndWithWithAnimation1.Autoplay=TrueOncethe.AvifileisloadedintotheAnimationcontrol,the.Avifileisautomaticallyplayedcontinuouslyandautomatically..OpenCommonDialog1.Filename'opena.Avifilethatwillbeplaye
6、d.IftheAutoPlaypropertyisTrue,thefileisloadedaslongasitisloaded.EndWithEndSubTheAnimationcontrolcannotplay.Avifilescontainingsounddata.Inaddition,animationcontrolscanonlydisplayuncompressedor.AvifilescompressedbyRLE.WhenthefilecallstheOpenmethod,theerrorisr
7、eturnedifthefilecontainssounddata,ordoesnothaveaspecificcompressionformat.Two,useAniPushButton(AniButton)controlInfluencedbytheWINDOWS/NTsuperterminalanimationeffect,theauthoralsohopestoaddtheeffectofrotatingtheearthinthedevelopmentoftheapplicationsoftware.
8、ThefirstPHOTOSHOPmakinguseofsomepictures,theimageoftheearthisaglobecopymade,everytimetheglobeafixedrotationangleimage,getadifferentviewoftheearthrepeatedly,andeverypieceoftimeintoa.Bmpfile,callforAniPushButton.TheAniPushButtoncontrolcontainsalargenumberofpr
9、operties,methods,andeventsfordeveloperstouse.FirstinPictureloadedandFramepropertiesintheimagefile,thePictureattributecanbeloadedintotheimagefileframeFramePictureattributeisloadedintotheimagefileindex,t