static private WindowsCodecsPresent ( ) : bool | ||
return | bool |
/// <summary> /// Constructor. Checks WIC status before any other operation. /// </summary> static ImageEngine() { var path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); ProfileOptimization.SetProfileRoot(path); ProfileOptimization.StartProfile("Startup.Profile_ImageEngine"); WindowsWICCodecsAvailable = WIC_Codecs.WindowsCodecsPresent(); // Set NumThreads to be more sensible NumThreads = Environment.ProcessorCount - 1; if (NumThreads == 0) // Single core... { NumThreads = 1; } // Enable GPU Acceleration by default /*if (GPU.IsGPUAvailable) * EnableGPUAcceleration = false;*/ }
/// <summary> /// Constructor. Checks WIC status before any other operation. /// </summary> static ImageEngine() { WindowsWICCodecsAvailable = WIC_Codecs.WindowsCodecsPresent(); //WindowsWICCodecsAvailable = false; }