🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #161

Re: Nakładanie obrazków

#161
From: Krzysztof Walkowicz
Date: Sat, 18 Aug 2001 20:16
29 lines
1829 bytes
> chciałbym się dowiedzieć czy istnieje funkcja, która pozwala nałożyć dwa
> obrazki na siebie, tnz. mam jeden obrazek duży, i jeden mały. I teraz
chce,
> aby ten obrazek mały wszedł na ten duży w np. lewym dolnym rogu. Jeżeli
taka
> funkcja istnieje to prosiłbym o przykład z zastosowaniem tej funkcji.

Biblioteka GD posiada taka funkcje, uzyj tego kodu:

<?php

/* gd.php */

$Image1 = ImageCreateFromPNG("mysql.png");
$Image2 = ImageCreateFromPNG("chat.png");

ImageCopy($Image1, $Image2, 10,10, 0,0, 100, 100);

ImagePNG($Image1);

?>

Zobacz jak dziala:
http://zacisze.dhs.org/dev/php.pl/gd.php

pozdrawiam,
--
Krzysztof Walkowicz <kw@php.pl>
[ webdeveloper / sysadmin ]
Technical Details
Message-ID: <9lmifs$6no$1@news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!pcmedia.com.pl!news.man.szczecin.pl!news.task.gda.pl!news.tpi.pl!not-for-mail
References: <9lmh2b$1lg$1@news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!pcmedia.com.pl!news.man.szczecin.pl!news.task.gda.pl!news.tpi.pl!not-for-mail
From: "Krzysztof Walkowicz" <kw@php.pl>
Newsgroups: pl.comp.lang.php
Subject: Re: Nakładanie obrazków
Date: Sat, 18 Aug 2001 22:16:32 +0200
Organization: tp.internet - http://www.tpi.pl
Lines: 31
Message-ID: <9lmifs$6no$1@news.tpi.pl>
References: <9lmh2b$1lg$1@news.tpi.pl>
NNTP-Posting-Host: pc203.tychy.sdi.tpnet.pl
X-Trace: news.tpi.pl 998165820 6904 213.76.229.203 (18 Aug 2001 20:17:00 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: 18 Aug 2001 20:17:00 GMT
X-Notice-1: This post has been postprocessed on the news.tpi.pl server.
X-Notice-2: Subject line has been filtered and leading Odp: string removed.
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-Subject: Odp: Nakładanie obrazków
X-MSMail-Priority: Normal
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit