Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5573 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

Posted

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

Posted

Oreste,

Please use the "Request a Custom Script" button in the ScriptMaster example file, we can put one together for you pretty quickly.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.