Brian Dunning's FileMaker Custom Functions

@RGB2GIF ( red ; green ; blue )

Returns a .gif file with one pixel of the specified color.

  Average rating: 5.0 (1 vote) Log in to vote

Alex Zueiv   Alex Zueiv - Show more from this author
Tashkent
https://github.com/zueiv

Share on Facebook Share on Twitter

  Sample input:
GetContainerAttribute ( @RGB2GIF ( 255 ; 128 ; 0 ) ; "All" )
  Sample output:
[General]
Filename: FF8000.gif
Storage Type: Embedded
MD5: E3A6FC7551629A4B6C3C086564771AF9
File Size: 49
Internal Size: 99
External Size: 0
External Files: 0

[Image]
Width: 1
Height: 1
DPI Width: 72
DPI Height: 72
Transparency: 1 (True)

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

Returns a .gif file with one pixel of the specified color.

 

Comments

Douglas de Stwolinska   Douglas de Stwolinska, Bowden Data Services
Jun 12, 2023
Does anyone know how to use this function? What I was looking for was the ability to set the contents of a container field to be the .gif file that this function generates and have that container display the color of the .gif file.
 
Alex Zueiv   Alex Zueiv, Tashkent
Jun 12, 2023
// MagentaCalc (Calculation, Container, Unstored)
@RGB2GIF ( 255 ; 64 ; 255 )
// Enlarge image to fit; Do not maintain original proportions; Align: Left, Top.
 
Douglas de Stwolinska   Douglas de Stwolinska, Bowden Data Services
Jun 13, 2023
Thanks Alex for the calculated container field usage. I also found out that I can do a Set Field [ table::ContainerField ; @RGB2GIF (255; 64; 255)]. That was my original idea.
 

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: