Forum Moderators: coopster

Message Too Old, No Replies

imagesettile and IMG_COLOR_TILED

with 24bit png

         

benihana

5:23 pm on Nov 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Im trying to have a tileable header image generate on the fly with any color background.

I have a semi opaque 24bit png that adds the right pattern and i want to be able to open that image and overlay it on to any specified background color and save that combination as a gif to use in my css.

Sounds reasonably straight forward but am not getting anywhere.

I could do this al in the css but would rather not go down the proprietry filters route for IE - would rather handle server side if possible.
Would appreciate some tips :(

thanks

jatar_k

9:57 pm on Nov 9, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I have no idea, but I'll bump it for you ;)

benihana

9:07 am on Nov 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



thanks jatar

I havent really made much prgress with this, and other more pressing deadlines are fast approaching, but when i get back to it im going to have a look at:

int imagecopy ( resource dst_im, resource src_im, int dst_x, int dst_y, int src_x, int src_y, int src_w, int src_h)

Copy a part of src_im onto dst_im starting at the x,y coordinates src_x, src_y with a width of src_w and a height of src_h. The portion defined will be copied onto the x,y coordinates, dst_x and dst_y.

which sounds like it may do the trick :)