FairyGUI.ColorFilter.AdjustBrightness C# (CSharp) Method

AdjustBrightness() public method

Changes the brightness. Typical values are in the range (-1, 1). Values above zero will make the image brighter, values below zero will make it darker.
public AdjustBrightness ( float value ) : void
value float
return void
        public void AdjustBrightness(float value)
        {
            ConcatValues(1, 0, 0, 0, value,
                         0, 1, 0, 0, value,
                         0, 0, 1, 0, value,
                         0, 0, 0, 1, 0);
        }

Usage Example

示例#1
0
 static public int AdjustBrightness(IntPtr l)
 {
     try {
         FairyGUI.ColorFilter self = (FairyGUI.ColorFilter)checkSelf(l);
         System.Single        a1;
         checkType(l, 2, out a1);
         self.AdjustBrightness(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.ColorFilter::AdjustBrightness