seraph_nyc Posted August 26, 2009 Posted August 26, 2009 Hi, I am trying to use the drawing example provided in the file. I have two concerns. I want to put in a single picture at a specified location. So I need the function to look like this. picture ( url, x, y) How do I do this. Oreste
shmert Posted August 26, 2009 Posted August 26, 2009 Hello Oreste, Can you paste your script in here? You should be able to fiddle with the image coordinates in the existing script: graphics.drawImage(ImageIO.read(new URL(smileyUrl)), 75, 75, 64, 64, null); If you want to make a defined input parameter for the coordinates, you need to keep in mind that all parameters are passed in as Text, which are mapped to Java strings. You'll need to convert these to integers to use as graphics coordinates.
seraph_nyc Posted August 27, 2009 Author Posted August 27, 2009 Hi, I don't have a script. I want to be able to control the x,y. I don't know how to add the parameter from the portal into the function. I don't know the syntax, i guess that is what I need. Oreste
shmert Posted August 27, 2009 Posted August 27, 2009 Oreste, Please use the "Request a Custom Script" button in the ScriptMaster example file, we can put one together for you pretty quickly.
Recommended Posts
This topic is 5573 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now