Brian Dunning's FileMaker Custom Functions

PixelColor_EncodeTriplet ( x ; y ; z )

Encodes the values, used by the PixelColor() function

  Be the first to rate this function Log in to vote

Andrea Niro   Andrea Niro - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
1. PixelColor_EncodeTriplet ( 0; 0; 0 )
2. PixelColor_EncodeTriplet ( 255; 255; 255 )
3. PixelColor_EncodeTriplet ( 255; 163; 45 )
4. PixelColor_EncodeTriplet ( 16; 255; 255 )
  Sample output:
1. AAAA
2. ////
3. /6Mt
4. EP//

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

The function acts as a support to the main function, PixelColor (https://www.briandunning.com/cf/)

--------------------------------------------------------------------------------------

Dependencies:
BitwiseAND ( x; y ) [ https://www.briandunning.com/cf/2461 ]
BitwiseOR ( x; y ) [ https://www.briandunning.com/cf/2462 ]
BitwiseShL ( x; y ) [ https://www.briandunning.com/cf/2465 ]
BitwiseShR ( x; y ) [ https://www.briandunning.com/cf/2466 ]

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: