How to Change Maps/Photos
by Suzanne Alejandre
As you create a customized version of any of the lessons displayed on the Index page that use the Image_and_Cursor applet, you may wish to replace the map or photo that we have with one of your choosing.
There are several methods to use to get another map or photo including:
So, let's assume that you have the image that you want to use with the applet. We'll call your map or photo image.gif. It can be either a gif or a jpg. Both graphics formats will work. Just remember to use the same name in your code as you named your file.
Also you need to know the size of your image. This will make a difference when you change it for another one. You can approach this using two methods. One, you can just estimate and hope that it works. Two, you can use a program like Adobe PhotoShop to find the "image size" and know exactly what size your image is. It probably will depend what software and tools you have available. Remember, though, if this changing process doesn't work, it might be because your image isn't the right size and you have some adjusting to do.
Here's what you'll do to get your new image in place.
Once you've tried all of that, test it! Open the applet file and see if your image loads. If it doesn't work remember to check:
Home || The Math Library || Quick Reference || Search || Help