WiseImage Open Architecture Lessons “Mission Impossible”

Slides:



Advertisements
Similar presentations
This presentation describes how to save files so that they cannot be changed by any user. This technique is a simple way of giving access to documents,
Advertisements

Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
EasyGUI “Probably the Easiest GUI in the world”. Assumptions (Teachers’ Notes) This resources sets out an introduction to using easyGUI and Python
1 CSC 551: Web Programming Spring 2004 client-side programming with JavaScript  scripts vs. programs  JavaScript vs. JScript vs. VBScript  common tasks.
ISP 121 Algorithmsand Computer Programming. Why Know Simple Programming?  You can create powerful macros in Access / Excel / Word / ??? to manipulate.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
Understanding Correlation In HP LoadRunner >>>>>>>>>>>>>>>>>>>>>>
The Web Warrior Guide to Web Design Technologies
Tutorial 10 Programming with JavaScript
CIS101 Introduction to Computing Week 11. Agenda Your questions Copy and Paste Assignment Practice Test JavaScript: Functions and Selection Lesson 06,
JavaScript Lesson 1 TBE 540. Prerequisites  Before beginning this lesson, the learner must be able to… Create a basic web page using a text editor and/or.
Introduction to JavaScript. Aim To enable you to write you first JavaScript.
Create Forms Lesson 5. Software Orientation Creating Forms A form is a database object –enter, edit, or display data from a table or query Providing.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
1 ADVANCED MICROSOFT WORD Lesson 15 – Creating Forms and Working with Web Documents Microsoft Office 2003: Advanced.
C Copyright © 2009, Oracle. All rights reserved. Using Diagnosis and Debugging Techniques.
Modeling and Animation with 3DS MAX R 3.1 Graphics Lab. Korea Univ. Reference URL :
Copyright 2007, Information Builders. Slide 1 Maintain & JavaScript: Two Great Tools that Work Great Together Mark Derwin and Mark Rawls Information Builders.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Met Alert Tool (MAT). Introduction What is MAT? –Met Alert Tool (MAT) monitors and alerts the user to weather conditions exceeding thresholds (for example,
Presented by : Olivia Lin. Outline Preparation works –What software do I need? Source of sample codes –Online source: Supergeo Developer Network (SGDN)
1 Access Lesson 4 Creating and Modifying Forms Microsoft Office 2010 Introductory.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
Shell Scripting Introduction. Agenda What is Shell Scripting? Why use Shell Scripting? Writing and Running a Shell Script Basic Commands -ECHO - REM.
Program documentation Using the Doxygen tool Program documentation1.
Tutorial 10 Programming with JavaScript. XP Objectives Learn the history of JavaScript Create a script element Understand basic JavaScript syntax Write.
Introduction of Geoprocessing Topic 7a 4/10/2007.
2. Recording a Macro. Macro Recording Select Record Macro from the Macro file menu and the dialog box opposite will appear Your macro will require a name.
Using Client-Side Scripts to Enhance Web Applications 1.
1 Committed to Shaping the Next Generation of IT Experts. Chapter 8 Exchanging Data Between Access and Other Applications Exploring Microsoft Office Access.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
WHO WILL BENEFIT FROM THIS TALK TOPICS WHAT YOU’LL LEAVE WITH Developers Interested in HTML5 Games Interested in Windows Azure Interested in Game Development.
Access Forms and Queries. Entering Data in Your Table  You can add data to your table in Datasheet view, by typing in the columns and rows.  This.
COSC 302 Group 2 Caleb Redman Catie Flessas Cory Pugh Sean Goerling.
1 JavaScript
CSD 340 (Blum)1 Starting JavaScript Homage to the Homage to the Square.
SilkTest 2008 R2 SP1: Silk4J Introduction. ConfidentialCopyright © 2008 Borland Software Corporation. 2 What is Silk4J? Silk4J enables you to create functional.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Access 2002 Using Access Tools.
Introduction & Overview Introduction to PHP - Fort Collins, CO Copyright © XTR Systems, LLC Introduction to & Overview of PHP Instructor: Joseph DiVerdi,
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
CSD 340 (Blum)1 Starting JavaScript Homage to the Homage to the Square.
HTML Overview Part 5 – JavaScript 1. Scripts 2  Scripts are used to add dynamic content to a web page.  Scripts consist of a list of commands that execute.
WDMD 170 – UW Stevens Point 1 WDMD 170 Internet Languages eLesson: Variables, Functions and Events (NON-Audio version) © Dr. David C. Gibbs WDMD.
NIMAC for Publishers & Vendors: Using the Excel to OPF Feature & Manually Uploading Files December 2015.
Video in Macromedia Flash (Optional) – Lesson 121 Video in Macromedia Flash (Optional) Lesson 12.
First Project: Dance Dance Sprite  Write a dance with your sprite (You pick or create the sprite)  Incorporate as many of the Motion Commands as you.
USING JAVASCRIPT TO SHOW AN ALERT Web Design Sec 6-2 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
Introduction of Geoprocessing Lecture 9 3/24/2008.
Chapter – 8 Software Tools.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
Introduction to TouchDevelop Lesson 3 – Comments & Lists Created by S. Johnson
Microsoft® Small Basic Conditions and Loops Estimated time to complete this lesson: 2 hours.
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
INTERNET APPLICATIONS CPIT405 JavaScript Instructor: Rasha AlOmari
Chapter 7 Creating Templates, Importing Data, and Working with SmartArt, Images, and Screen Shots Microsoft Excel 2013.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
Dive Into® Visual Basic 2010 Express
Using JavaScript to Show an Alert
“Under the hood”: Angry Birds Maze
Tutorial 10 Programming with JavaScript
Data Virtualization Tutorial… CORS and CIS
Lecture 1: Introduction
Introduction to TouchDevelop
Introduction to TouchDevelop
Python 19 Mr. Husch.
Tutorial 10 Programming with JavaScript
Python 19 Mr. Husch.
Presentation transcript:

WiseImage Open Architecture Lessons “Mission Impossible”

Objectives Learn how to use Active Script studio Create a new command that scales your image –Measure the distance –Convert it to paper units –Get prompted for a desired distance –Scale the image

Preparation Open Active Script Studio Observe the tools –F–File operations –E–Edit, Search and Undo –R–Run, FormWizard and Reference Let’s start

Step 1:Measure Distance

Step 1: Discussion Root objects like Document, Command Interaction with user – messages, prompts, forms Choosers – important interactive objects

Step 1: Execution Save your script Create a toolbar for your brilliant commands Assign a new button to your command Run it!

Step 2: Paper Units Coordinate systems: WCS, UCS, units What are paper units? How to convert data to paper units and back to world units? Useful transformation object - Transformer

Step 2: Code changes Add transformation function function ToPaperUnits(val) { with (Document.CoordinateSystem.PaperUnit) { val = W2U.Direct(val); return D2S(val); } Command.Alert("Distance is " + org_dist); Modify your previous code by replacing with Command.Alert("Distance is " + ToPaperUnits(org_dist));

Step 2: Execution Change units to inches Run the command again Run your command What is the difference?

Step 3: Be Interactive! Script commands can be interactive How to get response from user? –Alert – a simple reply yes or no –Prompt – get some literate response –Forms – the most sophisticated and flexible way

Step 3: Code changes Modify your previous code by replacing var res = Command.Prompt( "You have measured the distance " + ToPaperUnits(org_dist) + "\r\nEnter the required distance", "Scale Image"); try { var new_dist = ToWorldUnits(res); if (new_dist == 0.0) Command.Quit(); Command.Alert(new_dist); } catch (e) { Command.Alert(e); } // TODO: Add ToWorldUnits() code Command.Alert("Distance is " + org_dist); with

Step 3: Execution Run your code

Final point How to process images: –Tools collection –Batch commands

Final point: Code changes Modify your previous code by replacing with (Tools("Resample")) { ToolParam("ResampleType") = 1; ToolParam("Scale") = * new_dist / org_dist; ToolParam("ResampleFlag") = true; WiseRun(); Document.View.Invalidate(); } with Command.Alert("Distance is " + org_dist);

Final point: Fulfillment Load the sample image Run your command Enjoy Do you know any other way how to do the same?

Be Interactive – part 2 HTML forms Form Designer is part of Active Script Studio Form Wizard will help you to create good looking forms.

Form creation Create a new form Add your controls Save the form

FormWizard Create a new simple script function Main() { } Save it Run FormWizard Just follow instructions Run your script

The magic of forms Open the sample script Bonus\RasterResize.js Run it

Gifts Interactive Image scaling – wrap.js “Back to the Future” – text_rotate.js GIS sample