# Can Flash do it in PHP?

**URL:** <https://forum.kirupa.com/t/can-flash-do-it-in-php/261959>\
**Category:** programming\
**Created:** [June 2, 2008, 5:19am UTC](https://forum.kirupa.com/t/can-flash-do-it-in-php/261959 "2008-06-02T05:19:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![konach05](https://avatars.discourse-cdn.com/v4/letter/k/ea666f/32.png) [@konach05](https://forum.kirupa.com/u/konach05)\
**Post date:** [June 2, 2008, 5:19am UTC](https://forum.kirupa.com/t/can-flash-do-it-in-php/261959/1 "2008-06-02T05:19:22Z")

</div>

Hi, I have to make an application and I dont know whether Flash can do it or not, and whether it is easy to do:

The process is as following:

In the Flash,  
1: The user uploads an image  
2: The user enter a distance(e.g.: 5cm) , click “enter”  
3: he clicks 2 points(pt.A and pt.B) , and the program was told the distance between them is 5cm

To explain more clearly, I call the line joining pt.A and pt.B to be “Line AB”, and the mid-point of the “Line AB” to be “Midpoint AB”

4: Change the image resolution to be 50 pixels/cm  
5: Rotate the image until the Line AB become horizontal  
6: Crop the image based on Midpoint AB, such that the distance between:  
a) the top of the cropped image and the MidpointAB = 400 pixels (8cm)  
b) the bottom of the cropped image and the MidpointAB = 300 pixels (6cm)  
c) The left side of the cropped image and the MidpointAB = 200 pixels (4cm)  
d) the right side of the cropped image and the midpointAB = 200 pixels (4cm)

May I know whether Flash can do it and whether it is difficult to do so?

Thank you very much!

---

<div class="post-metadata">

**Author:** ![bluemagica](https://avatars.discourse-cdn.com/v4/letter/b/a4c791/32.png) [@bluemagica](https://forum.kirupa.com/u/bluemagica)\
**Post date:** [June 2, 2008, 5:33am UTC](https://forum.kirupa.com/t/can-flash-do-it-in-php/261959/2 "2008-06-02T05:33:30Z")

</div>

Hmm…well, from what you said, it isn’t very difficult, since the php portion is simple uploading, and flash portion is simple BitmapData manipulation…but frankly speaking, i couldn’t understand what you wanted to do actually…

---

<div class="post-metadata">

**Author:** ![konach05](https://avatars.discourse-cdn.com/v4/letter/k/ea666f/32.png) [@konach05](https://forum.kirupa.com/u/konach05)\
**Post date:** [June 2, 2008, 6:45am UTC](https://forum.kirupa.com/t/can-flash-do-it-in-php/261959/3 "2008-06-02T06:45:39Z")

</div>

Thank you , I want to superimpose an image on the other in 1:1 ratio : ) , so I have to make the resolution of the two image to be the same : )[quote=bluemagica;2334597]Hmm…well, from what you said, it isn’t very difficult, since the php portion is simple uploading, and flash portion is simple BitmapData manipulation…but frankly speaking, i couldn’t understand what you wanted to do actually…[/quote]
