|
Posted by "Albert" on 10/06/32 11:33
Jochem Maas wrote:
> the output image resource you create should be created with $xxx =
> imagecreatetruecolor(1000,1000), you should call imagealphablending($xxx,
> true) on the output image resource after you create and before copying
> [which you are as far as I can tell], and you should use
> imagecopyresampled() to actually copy the image data into the final image
> (instead of imagecopy()).
It seems that I have three problems:
1. It seems that true color images do not support transparency (even though
I'm outputting to a PNG). It does not matter which colour I set to be
transparent it always is displayed as black which hides my satellite image.
2a. Because I am now forced to use a paletted image instead of a true color
image it seems that the colours in the second image is not added to the
palette of the first image.
or
2b. The alpha blending on the image causes the actual colours in the top
image to be blended with the satellite image. Because of this the top image
are blended in with the satellite image. If I do not set imagealphablending
($im, true) then the transparency in the top image is ignored and I do not
see the satellite image.
This brings me back to the original problem:
I have a true colour satellite image in PNG format. On top of this I want to
add the data collected from data collected by my company. This is always
shapes drawn which should not be alpha blended with the satellite image.
These shapes are drawn on a transparent background. The transparent
background allows for the satellite image to show through.
Any suggestions are welcome.
Albert
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 2005/11/30
Navigation:
[Reply to this message]
|