How filter particular colours on different parts of an image
Posted: Mon Nov 20, 2006 5:33 pm
What I need is some sort of direction as to how to filter certain colours (eg. so an image is grey-scale; or has like a red filter so it looks substantially red or whatever).
Problem is different parts of the image require different filters.
Basically I have a calendar; and each day of the calendar could be filtered by 1 of about 7 different colours/filters.
Firstly, is there a way in HTML that I could use a particular filter on top of a cell of a HTML table so that the background image of the table still comes through, but is filtered and only filtered in that particular cell of the table??
If not; is there a way in PHP I could set coordinates of an image or something which will filter different colours??
So that from say [x][y] of the image to [x+1][y-1] would be a grey filter; and then [x+2][y] through to [x+3][y-1] would be a red filter??
Worse case scenario if this doesnt work, I can just manually capture the image behind each cell; apply a filter through adobe; and save it; and then do a bunch of 'if' statements in php to determine which cell background image (which has been manually filtered) to use.
However; the HTML idea sounds best to me (but haven't had any success in searching for the concept).
Thanks
Problem is different parts of the image require different filters.
Basically I have a calendar; and each day of the calendar could be filtered by 1 of about 7 different colours/filters.
Firstly, is there a way in HTML that I could use a particular filter on top of a cell of a HTML table so that the background image of the table still comes through, but is filtered and only filtered in that particular cell of the table??
If not; is there a way in PHP I could set coordinates of an image or something which will filter different colours??
So that from say [x][y] of the image to [x+1][y-1] would be a grey filter; and then [x+2][y] through to [x+3][y-1] would be a red filter??
Worse case scenario if this doesnt work, I can just manually capture the image behind each cell; apply a filter through adobe; and save it; and then do a bunch of 'if' statements in php to determine which cell background image (which has been manually filtered) to use.
However; the HTML idea sounds best to me (but haven't had any success in searching for the concept).
Thanks