public bool GetColorParameter(ColorCorrectionParameter color, out float MinVal, out float MaxVal, out float DefaultVal, out float CurVal, out bool enabled) { MinVal = 0.0f; MaxVal = 0.0f; DefaultVal = 0.0f; CurVal = 0.0f; enabled = false; if (s_logstack) { logger.Log("[INTEROP]GetColorParameter"); } if (instanceId == InvalidID) { return(false); } uint colorid = ColorCorrectionParameterToInterop(color); if (0 == colorid) { return(false); } SVFColorParameter colorParam = new SVFColorParameter() { id = colorid, minValue = 0.0f, maxValue = 0.0f, defaultValue = 0.0f, currentValue = 0.0f, isEnabled = false }; bool fRes = InteropGetColorCorrectionParameter(instanceId, ref colorParam); if (fRes) { enabled = colorParam.isEnabled; MinVal = colorParam.minValue; MaxVal = colorParam.maxValue; DefaultVal = colorParam.defaultValue; CurVal = colorParam.currentValue; } return(fRes); }
private static extern bool InteropGetColorCorrectionParameter(int instanceId, ref SVFColorParameter colorParam);