diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-06-24 07:49:56 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-24 07:49:56 +0400 |
commit | 734a4aa428da5c4a3e05eddbb643c0d26df3e69d (patch) | |
tree | 032de0df22bb1e89c6ecb306762ef8558884eed1 /source/blender/blenlib/BLI_math_color.h | |
parent | fc95ebbc556426b072fc41435bb76cadb16a56df (diff) |
fix [#27746] Black and White Render doesn't work and/or Saves as a Blank screen
convert to grayscale when saving renders rather then only writing the red channel.
Diffstat (limited to 'source/blender/blenlib/BLI_math_color.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_color.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_color.h b/source/blender/blenlib/BLI_math_color.h index fe09706cb3d..a6a1238a064 100644 --- a/source/blender/blenlib/BLI_math_color.h +++ b/source/blender/blenlib/BLI_math_color.h @@ -70,6 +70,7 @@ unsigned int rgb_to_cpack(float r, float g, float b); unsigned int hsv_to_cpack(float h, float s, float v); float rgb_to_grayscale(float rgb[3]); +unsigned char rgb_to_grayscale_byte(unsigned char rgb[3]); /***************** Profile Transformations ********************/ |