Re: imagecopyresampled question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



isn't it just to do a $new=imagecreatetruecolor(50,50) , and use
imagecopyresampled($new,$orginal,0,0,$cordinate_from_flash_app_x,$same_but_y
,50,50,$flash_end_x,$flash_end_y);


imagecopyresampled($new,$orginal,0,0,100,120,50,50,300,320);

-- 
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
##########################
Please, if you are using windows, you may be infected by Swen. Please go
here to find out more:
http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen
http://securityresponse.symantec.com/avcenter/venc/data/w32.swen.a@mm.html
##########################
"Bobo Wieland" <bobo.wieland@ektv.nu> skrev i meddelandet
001401c3cbe7$2c51fb40$d0fe1e0a@uedamultimedia">news:001401c3cbe7$2c51fb40$d0fe1e0a@uedamultimedia...
> Hi all and merry christmas (and a happy new year)!
>
> I use fixed values in this example, but of course it is variables in my
> script...
>
> Let's say I have an image uploaded to the server: 650x400px...
> Now, I've selected a square out of this image using a flash app that
returns
> the coordinates i've selected. The coordinates are:
> start_x:    100px;
> start_y:    120px;
> end_x:     300px; (or width:200px;)
> end_y:     350px; (or height:200px;)
>
> No I need to use php to take this square out of the uploaded image and
make
> it a 50x50px thumbnail. How should it be done?
>
>
> thanks for your help!
>
> .bobo

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux