Jump to content
BilalAli

Change color images

Recommended Posts

Dear Sir,

i have 12 Images Random forms are irregular

and i want to enter values (numbers)

depending of these number how can i change these images color

such example:

if value no1 = 10 change color image no1 to red and if the number is 5 change the color to green ( 3 color for each value)

 

 

Share this post


Link to post
Share on other sites

There is no way to change the color of an image within FileMaker. You will have to store each color of each image in a table. One way to do this is in a repeating field. See attached example.

BilalAli.fmp12

Share this post


Link to post
Share on other sites

Dear doughemi

thank you again

attach my idea 

1) i want to input 12 data numbers 

2) for each number we have 3 pictures different colors as you say

3) after input data numbers the system appear one of three pictures (condition) if number >5 appear green picture

if number > 10 appear red picture if number > 0 appear blue

at final we input 12 number and appeared 12 picture

Regards

Bilal Ali

 

BilalAli.fmp12

Share this post


Link to post
Share on other sites

What do these 12 fields represent? It seems you should have 12 records in a related table instead. That would mean - among other things - one calculation instead of 12.

Share this post


Link to post
Share on other sites

you know lego? this is like a game

the big picture split for 12 piece

and i fill number

each piece color appear depending of value that entered

such as the last attach

 

Share this post


Link to post
Share on other sites
35 minutes ago, BilalAli said:

he big picture split for 12 piece

That describes a one-to-many structure, as I suggested earlier: one game has many (12 in your example) pieces - so that would require one record in the Games table and 12 related records in the Pieces table.

The missing piece 😊 for me is how many images in total would you have for this. Your file shows 3 different pieces x 3 colors = 9 images. If you have 12 pieces, you should have 12 x 3  = 36 different images.

-
Another thing: there is a way to conditionally format images; if the images are in the SVG format and conform to Filemaker's standard for icon images. Such icons can be used in buttons and in button bars, and you can apply conditional formatting to change their background and/or foreground color. In such case you would need only 12 images.

--
Finally, if you plan to show the pieces assembled together into a single image, then that's an entirely different matter. For this, I would suggest using a web viewer, and change the color of the pieces by modifying the HTML code (somewhat similar to: https://fmforums.com/topic/103625-drawing-in-web-viewer/?do=findComment&comment=470194).

 

 

Edited by comment

Share this post


Link to post
Share on other sites

yes
i created everything almost but i don't know how they can work as i want

Share this post


Link to post
Share on other sites

I have seen this file before my fist post in this thread. We're not making progress here.

Share this post


Link to post
Share on other sites

thank you doughemi for your assistance,
but i'm still until now without solve the project, 
can you help me to as attached file

Regards

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.