ArduinoTest.Components.ColorManagment.Service.DirectxColorProvider.DirectxColorProvider C# (CSharp) Метод

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

Ctor
public DirectxColorProvider ( ) : System
Результат System
        public DirectxColorProvider()
        {
            _colorHelper = new ColorHelper();
            _samplePointService = new SamplePointService();
            _colorMapper = new ColorMapper();

            PresentParameters present_params = new PresentParameters();
            if (d == null)
            {
                d = new Device(new Direct3D(), 0, DeviceType.Hardware, IntPtr.Zero, CreateFlags.SoftwareVertexProcessing, present_params);
            }
            if (_samplePoints == null)
            {
                _samplePoints = _samplePointService.GetSamplePoints(.1f);
            }

            if(_graphics == null)
            {
                _graphics = this.CreateGraphics();
            }
        }