Volgens
http://www.php-center.de/en-html-manual/function.imagecopymergegray.html wrkt de functie als
volgt:
Description
int ImageCopyMergeGray (resource dst_im, resource src_im, int dst_x, int dst_y, int src_x, int src_y, int src_w, int src_h, int pct)
ImageCopyMergeGray() 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. The two images will be merged according to pct which can range from 0 to 100. When pct = 0, no action is taken, when 100 this function behaves identically to ImageCopy().
This function is identical to ImageCopyMerge() except that when merging it preservese the hue of the source by converting the destination pixels to gray scale before the copy operation.
Voordat er gekopieerd wordt naar de
dst_im worden de pixels dus al geconverteerd naar grayscale. Als je er nu voor zorgt dat
pct=0, dan wordt dus 0% van de
src_im op de
dst_im "geplakt", maar aangezien
voor de operatie de zaak ge-grayscaled is zou in de
dst_im dus de grijswaarde van het plaatje moeten staan.
Ik weet niet hoe je m nu aanroept maar gezien de definitie van de functie zou ik dus voor src_im en dst_im hetzelfde plaatje nemen en pct op 0 zetten.
Dan zou als ik t goed begrijp het grijswaardenplaatje na de kopieeractie in dst_im moeten staan.
Succes.