View Full Version : Changing colours of images
Cummins
07-31-2006, 09:42 AM
Does anyone have some samples as to how to change the colour of an image? i.e. when placing the mouse over the image it turns into red and yellow on leave and so on.
holtgrewe
07-31-2006, 11:49 AM
One way would be to create separate images in the color you want.
On mouse-over - Image.Load("Image1", "NewColorImage").
On Mouse-leave Image.Load("Image1", "OriginalColorImage").
You may play around with the transparent color features but that may not give you the desired effects.
Animl
07-31-2006, 05:23 PM
One way would be to create separate images in the color you want.
On mouse-over - Image.Load("Image1", "NewColorImage").
On Mouse-leave Image.Load("Image1", "OriginalColorImage").
You may play around with the transparent color features but that may not give you the desired effects.
Making a button with the images is also an option.
Cummins
08-01-2006, 01:45 AM
Holtgrewe and Animl
Thank you for your suggestions, appreciated it. They are worth trying but there should be some ways of accomplishing this task through Image.SetProperties action. I tried couple of different codes but couldn't make them work. This is why I wanted to see some sample projects (or a simple sample code will do as well). I did some research with the hope of finding what I needed but couldn't come across any. When the time is a major concern, it is quite difficult to spare extra time to learn how to write codes.
Any suggestions?
Animl
08-01-2006, 01:56 AM
Holtgrewe and Animl
Thank you for your suggestions, appreciated it. They are worth trying but there should be some ways of accomplishing this task through Image.SetProperties action. I tried couple of different codes but couldn't make them work. This is why I wanted to see some sample projects (or a simple sample code will do as well). I did some research with the hope of finding what I needed but couldn't come across any. When the time is a major concern, it is quite difficult to spare extra time to learn how to write codes.
Any suggestions?
IF I understood you right, AMS will not change the color of a image that I know of. That is why I suggested making a button of images that resemble what you want. When you mouse over a button it changes, depending on how its constructed. There's really no coding involved in making a button.
Maybe someone else has a better answer, but like I said I don't think AMS will change a picture color.
Dermot
08-01-2006, 02:22 AM
Is this what you mean?
Animl
08-01-2006, 02:32 AM
Is this what you mean?
I stand corrected.. I learned something new myself. I had no idea. does ams have any limits? lol sheesh
Cummins
08-01-2006, 03:56 AM
Dermot
Your sample could be the answer to my question. I'll see if this works well in my project. It is suprising to see that there seems to be no limit to what can be done with AMS.
Thanks for your support guys...
Nice job Dermot. That is a creative solution.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.