|
|
Question : Overlay one image on top of another programatically
|
|
I have a web application where I want to overlay a small image onto a larger image and build a composite image on-the-fly. An example of this is where the larger image is a map and the smaller image is a small flag that shows the position.
I was hoping to find a small .exe that my program can call on the server side by passing the two images and the coordinates of where the smaller image should be positioned. I don't care right now what formatthe images are - please tell me what the best one to use would be. Ideally, the resulting image should be small so that it can be efficiently passed over the web.
Thanks.
|
Answer : Overlay one image on top of another programatically
|
|
Are you using Frontpage 2003? There is a "tracing image" feature that does this easily. You need to place the tracing image first, then you can just place other images over the trace image in absolute position. You can even set the opacity.
If you have FP2003, try this ============================ Set a tracing image Show All Hide All 1. In Page view, at the bottom of the document window, click Design . 2. On the View menu, point to Tracing Image, and then click Configure. 3. Locate and click the file you want to set as a tracing image, and then click Insert. 4. In the X box, type or select the horizontal coordinates for the tracing image in pixels (pixel: A single unit of measurement that your computer's display hardware uses to paint images on your screen. These units, which often appear as tiny dots, compose the pictures displayed by your screen.). 5. In the Y box, type or select the vertical coordinates for the tracing image in pixels. 6. Under Opacity, move the slider to set the opacity of the tracing image.
If you do not have FP2003, try this code:
note: tracingopacity = the opacity of the image tracingx and tracingy set the location of the image relative to the screen
Cheers!
|
|
|
|
|