Axiom.Plugins.SystemDrawingCodecs.Plugin.Initialize C# (CSharp) Метод

Initialize() публичный Метод

Perform any tasks the plugin needs to perform on full system initialization.
An implementation must be supplied for this method. It is called just after the system is fully initialized (either after Root.Initialize if a window is created then, or after the first window is created) and therefore all rendersystem functionality is available at this time. You can use this hook to create any resources which are dependent on a rendersystem or have rendersystem-specific implementations.
public Initialize ( ) : void
Результат void
		public void Initialize()
		{
			CodecManager codecMgr = CodecManager.Instance;

			codecMgr.RegisterCodec( new SDImageLoader( "BMP" ) );
			codecMgr.RegisterCodec( new SDImageLoader( "JPG" ) );
			codecMgr.RegisterCodec( new SDImageLoader( "PNG" ) );
		}