how I make trans colors
Try reading the info on this page. It explains exactly how to do what you want to do:
http://us3.php.net/manual/en/function.imagealphablending.php
http://us3.php.net/manual/en/function.imagealphablending.php
http://userbars.freehostia.com/userbars.php is a good creator I found. I am going to use that a bit. Its got more features like diff gradients and such. I like it better than the other one.
- swivelgames
- Transient Squash (Posts: 2353)
- 29 Sep 2006 06:30:07 pm
- Last edited by swivelgames on 03 Oct 2006 11:56:14 pm; edited 1 time in total
Well I just finished making my sig bar partially, still working on it alot. hows it look atm?
its in me sig right bel'w d'er
Just created a new one. Its for my main forum, rhika
I am going to make some AutoUpdaterz for rhika soon too, thats what I am working on now
its in me sig right bel'w d'er
Just created a new one. Its for my main forum, rhika
I am going to make some AutoUpdaterz for rhika soon too, thats what I am working on now
Creating Layers? Anyone know how to do that? Basicly, I need to take to images and merge them togather, _after_ the first one is generated using PHP.
That's easy - just use this: *_* rats, I forgot the command. It's something like imagecopyrgb. I'll look it up for you later.
Ok cool. Thanks. Once I get home I should be able to work on it.
My only problem that I have atm is, is that I cannot have the script in one. I am in the position that I have to make 2 script files.
I know how I am going to do it with 2 scripts, but I would much rathre have only one script file. 2 being used at the same time would double bandwidth than the 1st is already using =/
And I am higher than I have been in a while.
My only problem that I have atm is, is that I cannot have the script in one. I am in the position that I have to make 2 script files.
I know how I am going to do it with 2 scripts, but I would much rathre have only one script file. 2 being used at the same time would double bandwidth than the 1st is already using =/
And I am higher than I have been in a while.
**bump**
Man, I can't find anything on combining images in PHP...
Anyone able to help me?
I just need to take 2 images and put them together to make one, and I have found nothing on it.
Anyone mind helping me out>
I really badly need to get good enough to stop asking these questions. I am feeling way to big of a noob for programming in PHP for almost a year.
Man, I can't find anything on combining images in PHP...
Anyone able to help me?
I just need to take 2 images and put them together to make one, and I have found nothing on it.
Anyone mind helping me out>
I really badly need to get good enough to stop asking these questions. I am feeling way to big of a noob for programming in PHP for almost a year.
Here, this tutorial might help more than the random bits of code I could post up from my own projects:
http://codewalkers.com/tutorials/78/1.html
http://codewalkers.com/tutorials/78/1.html
swivelgames wrote:
ok awesome. Thanks.
Did that help? If not, I can give you code examples from my own stuff. Code:
imagecopymerge(MAIN_IMAGE,WATERMARK_IMAGE, *int dst_x*, *int dst_y*, Watermark_start_x, Watermark_start_y, IMAGE_WIDTH, IMAGE_HEIGHT, TRANSPARENCY)
The ones with astricts around them I don't quite understand. Mind explaining?
Replace those with two integers, respectively indicating the x-coordinate and the y-coordinate on the main image to place the top-left corner of the "watermark" image.
oh ok awesome. So if I wanted to make a water mark the same size as the image, I could insert this code?
Code:
Code:
imagecopymerge( $image, watermark.png, 0, 0, 1, 1, 100%(or do I have to find out the height and width and put it in?), 100%, 40)
1. The watermark image has to be an object as well - create an image from PNG and call it $im2 or something.
2. You have to find width and height in pixels
3. I doubt "1, 1" is correct - why would you start one column over and one row down?
2. You have to find width and height in pixels
3. I doubt "1, 1" is correct - why would you start one column over and one row down?
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
» Go to Registration page
» Go to Registration page
» Goto page Previous 1, 2, 3 Next
» View previous topic :: View next topic
» View previous topic :: View next topic
Page 2 of 3
» All times are UTC - 5 Hours
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Advertisement