Exemple #1
0
 private unsafe void ApplyBrightnessToPixel(byte *blue, double factor)
 {
     for (Argb i = Argb.blue; i <= Argb.red; ++i)
     {
         byte componentValue = *(blue + (byte)i);
         *(blue + (byte)i) = RgbComponentOperations.ChangeBrightness(componentValue, factor);
     }
 }
Exemple #2
0
        private unsafe void ApplyBrightnessToPixelBlue(byte *blue, double factor)
        {
            byte componentValue = *blue;

            *blue = RgbComponentOperations.ChangeBrightness(componentValue, factor);
        }
Exemple #3
0
        private unsafe void ApplyBrightnessToPixelGreen(byte *blue, double factor)
        {
            byte componentValue = *(blue + (byte)Argb.green);

            *(blue + (byte)Argb.green) = RgbComponentOperations.ChangeBrightness(componentValue, factor);
        }