Hi @ll,
still working with TD 3.1 and need to place some transparent gif's in a form
to indicate the efficiency of solar panels.
Has someone a working sample with MImgLoadFromFile, MImgSetTranspColor and finally show the gif?
Thanks in advance,
Mina
M!Image working sample transparent gif's
M!Image working sample transparent gif's
You do not have the required permissions to view the files attached to this post.
-
- Founder/Site Admin
- Posts: 2957
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
Re: M!Image working sample transparent gif's
Something like this?
You do not have the required permissions to view the files attached to this post.
Regards,
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Re: M!Image working sample transparent gif's
Dear Dave,
Your sample works fine but the transparent custom control can't be placed over other pictures
and that is exactly my target.
(s. modified app)
Any other option?
BR
Mina
Your sample works fine but the transparent custom control can't be placed over other pictures
and that is exactly my target.
(s. modified app)
Any other option?
BR
Mina
You do not have the required permissions to view the files attached to this post.
-
- Founder/Site Admin
- Posts: 2957
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
Re: M!Image working sample transparent gif's
So to have the exact requirement.
The initial image in your startpost, is that the situation you need to create?
So that you have a house image where dynamically the roof-tiles are colored?
If that is the case, I would create an image where the rooftiles have a fixed color value.
Based on the needs, you replace the fixed color with another color using
Or when the template image has a fixed palette, change the rooftiles (which are colored with a specific palette index) using
Then display the image with the replacement colors.
Or is there a different requirement?
The initial image in your startpost, is that the situation you need to create?
So that you have a house image where dynamically the roof-tiles are colored?
If that is the case, I would create an image where the rooftiles have a fixed color value.
Based on the needs, you replace the fixed color with another color using
Code: Select all
bOk = MImgSubstColor( hImage, nOldColor, nNewColor )
Code: Select all
bOk = MImgSetPaletteColor( hImage, nIndex, nColor )
Or is there a different requirement?
Regards,
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
-
- Founder/Site Admin
- Posts: 2957
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
Re: M!Image working sample transparent gif's
An example:
The house image (png) has 2 fixed colors for the solar panels.
Using the buttons you can replace the colors.
The house image (png) has 2 fixed colors for the solar panels.
Using the buttons you can replace the colors.
You do not have the required permissions to view the files attached to this post.
Regards,
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Dave Rabelink

Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Re: M!Image working sample transparent gif's
The second sample was a great help.
Appreciate your efforts and support!
Mina
Appreciate your efforts and support!
Mina
Who is online
Users browsing this forum: [Ccbot] and 0 guests