php-windows Digest 6 Sep 2013 05:59:08 -0000 Issue 4150
Topics (messages 31164 through 31166):
GD imagerectangle() function - background transparency?
31164 by: Jacob Kruger
31166 by: Pierre Joye
Re: PHP & Samba
31165 by: Anatol Belski
Administrivia:
To subscribe to the digest, e-mail:
php-windows-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-windows-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-wind...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Just wondering, if I load an existing image into an image resource, and then
draw a rectangle on it using the GD imagerectangle() function, and specifically
not using the imagefilledrectangle() function, does the new rectangle/box
overlay the existing image content, or just draw the outlines thereof
onto/overlaying the existing content?
Alternatively, should I load the existing image, then use something like
imagecreatetruecolor() to create another image resource of the same dimensions,
fill it with an obscure colour, draw the rectangle on it, set the transparency
colour for that specific image resource to the obscure colour, and then copy it
over the original/existing image resource before outputting/returning the
combination?
TIA
Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'
--- End Message ---
--- Begin Message ---
hi!
On Thu, Sep 5, 2013 at 10:35 PM, Jacob Kruger <ja...@blindza.co.za> wrote:
> Just wondering, if I load an existing image into an image resource, and then
> draw a rectangle on it using the GD imagerectangle() function, and
> specifically not using the imagefilledrectangle() function, does the new
> rectangle/box overlay the existing image content, or just draw the outlines
> thereof onto/overlaying the existing content?
>
> Alternatively, should I load the existing image, then use something like
> imagecreatetruecolor() to create another image resource of the same
> dimensions, fill it with an obscure colour, draw the rectangle on it, set the
> transparency colour for that specific image resource to the obscure colour,
> and then copy it over the original/existing image resource before
> outputting/returning the combination?
imagecopy supports alpha, imageoverlay lets you define the mode. But
I'm not sure what kind of results you try to achieve, please put a
link to an example result image with the two source images, it could
help :)
--
Pierre
@pierrejoye | http://www.libgd.org
--- End Message ---
--- Begin Message ---
Hi,
On Thu, 2013-09-05 at 10:46 -0400, Jorge F. Hernandez wrote:
> Hey guys,
>
> Does anybody know a way to browse a Samba (smb) server using PHP?
>
> Thanks.
>
If files were only I'd be interested on, I'd mount it as a drive on
windows or as a folder on linux.
Regards
Anatol
--- End Message ---