Пример #1
0
        private static unsafe int DoGetColorComponents(IntPtr aPtr, uint aVersion, uint aColor, uint *aBrightness, uint *aRed, uint *aGreen, uint *aBlue)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceZappOrgTestLights1 self = (DvServiceZappOrgTestLights1)gch.Target;
            uint brightness;
            uint red;
            uint green;
            uint blue;

            self.GetColorComponents(aVersion, aColor, out brightness, out red, out green, out blue);
            *aBrightness = brightness;
            *aRed        = red;
            *aGreen      = green;
            *aBlue       = blue;
            return(0);
        }