Microsoft® Small Basic

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

Microsoft® Small Basic
Microsoft® Small Basic
Microsoft® Small Basic Debugging Aids Estimated time to complete this lesson: 1 hour.
Microsoft® Small Basic Clock, Desktop, and Dictionary Objects Estimated time to complete this lesson: 1 hour.
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
CIS101 Introduction to Computing Week 05. Agenda Your questions Exam next week - Excel Introduction to the Internet & HTML Online HTML Resources Using.
CIS101 Introduction to Computing Week 05. Agenda Your questions CIS101 Survey Introduction to the Internet & HTML Online HTML Resources Using the HTML.
Introduction to HTML 2006 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Introduction to HTML 2006 INT197B. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Internet – Part II. What is the World Wide Web? The World Wide Web is a collection of host machines, which deliver documents, graphics and multi-media.
Introduction to HTML 2004 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Images By Tara Frieszell By Tara Frieszell. Adding images to your website will make it more interesting and add to the design. However, some viewers aren’t.
Browser and Basics Tutorial 1. Learn about Web browser software and Web pages The Web is a collection of files that reside on computers, called.
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
CIS101 Introduction to Computing Week 06. Agenda Your questions Excel Exam during second hour Our status after the snow day Introduction to the Internet.
Microsoft® Small Basic Sharing Code Estimated time to complete this lesson: 1 hour.
Microsoft® Small Basic Clock, Desktop, and Dictionary Objects Estimated time to complete this lesson: 1 hour.
Microsoft® Small Basic The Controls Object Estimated time to complete this lesson: 1 hour.
DATA COMMUNICATION DONE BY: ALVIN SAMPATH CARLVIN SAMPATH.
Lesson 2 — The Internet and the World Wide Web
1 Chapter 2 & Chapter 4 §Browsers. 2 Terms §Software §Program §Application.
Web Page Design I Retest Terms Review. 1. Web pages are created using a language known as ___________. The coding of this language must follow specific.
Internet Fundamentals Total Advantage MS Excel 97, Hutchinson, Coulthard, 1998 McGraw Introduction to HTML Chapter 7.
Images, Hyperlinks, and Sound Module 2: XHTML Basics LESSON 3.
Web Page Design I Basic Computer Terms “How the Internet & the World Wide Web (www) Works”
Computing Theory: HTML Year 11. Lesson Objective You will: o Be able to define what HTML is - ALL o Be able to write HTML code to create your own web.
JavaScript, Fourth Edition
1 John Magee 9 November 2012 CS120 Lecture 17: The World Wide Web and HTML Web Publishing.
XHTML1 Images N100 Building a Simple Web Page. XHTML2 The Element The src attribute specifies the filename of an image file To include the src attribute.
Web Design (7) Images (1). Images and the Image Element Images can be placed in the flow of text..jpg,.png and.gif image files work in web pages The img.
Week 1 – Beginners Content McAfee & Big Fish Games CoderDojo.
1 After completing this lesson, you will be able to: Transfer your files to the Internet. Choose a method for posting your Web pages. Use Microsoft’s My.
McLean HIGHER COMPUTER NETWORKING Lesson 6 Types of Browsers & WAP Explanation of browser functions Wireless access to the Internet Description of.
Microsoft® Small Basic Collision Detection Estimated time to complete this lesson: 1 hour.
Lesson 2: The World Wide Web Objectives After completing this lesson, you will be able to:  Define WWW and its relation to the Internet.  Explain how.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
Adding Images to Your Web Page Web Design Section 5-7 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
Microsoft® Small Basic Exploring Shapes Estimated time to complete this lesson: 1 hour.
Configuring and Deploying Web Applications Lesson 7.
HTML Overview Part 8 – Java Applets 1. Applets 2  A Java applet is a small application embedded in your HTML document which runs in the browser window.
Microsoft® Small Basic Flickr, ImageList, and Network Objects Estimated time to complete this lesson: 1 hour.
Web Page Design The Basics. The Web Page A document (file) created using the HTML scripting language. A document (file) created using the HTML scripting.
Computer Basics Introduction CIS 109 Columbia College.
Glencoe Introduction to Multimedia Chapter 2 Multimedia Online 1 Internet A huge network that connects computers all over the world. Show Definition.
HTML PROJECT #1 Project 1 Introduction to HTML. HTML Project 1: Introduction to HTML 2 Project Objectives 1.Describe the Internet and its associated key.
Unit Unit 4 – Windows OS File Structure Introducing Your Computer Widows File Types, Trees & Explorer.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
4.01 How Web Pages Work.
Web Browser presentation Name/ Hassan AL-Abdulmohsen
Imaging and Design for Online Environment
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
Egyptian Language School
Chapter 1 Introduction to HTML.
Project 1 Introduction to HTML.
PHP Image Manipulation
Exploring Microsoft Office 2013 Word Comprehensive
Microsoft® Small Basic
A Tiny Look at the Graphics Window
Chapter 27 WWW and HTTP.
Microsoft® Small Basic
Microsoft® Small Basic
Microsoft® Small Basic
Java applets 1/3/2019.
Introduction to HTML Simple facts yet crucial to beginning of study in fundamentals of web page design!
HTML Links.
A Tiny Look at the Graphics Window
4.01 How Web Pages Work.
APPLET PROGRAMMING.
Permission for this presentation is currently restricted. If you are not running Microsoft Office 2003 or an application that supports presentations with.
Presentation transcript:

Microsoft® Small Basic Flickr, ImageList, and Network Objects Estimated time to complete this lesson: 1 hour

Flickr, ImageList, and Network Objects In this lesson, you will learn about: Using different operations of the Flickr object. Using different operations of the ImageList object. Using different operations of the Network object.

Let’s explore each of these operations… The Flickr Object Flickr! You can access this online image-hosting Web site right from within your Small Basic program. Small Basic provides the Flickr object with two operations– GetPictureOfMoment and GetRandomPicture. Let’s explore each of these operations… Please Note: An Internet connection is required to use the Flickr object in Small Basic.

The Flickr Object You can use the GetPictureOfMoment operation of the Flickr object to get the URL for Flickr’s picture of the moment. You can then retrieve and display that image in your program by using the DrawImage or DrawResizedImage operations of the GraphicsWindow object. Please Note: An Internet connection is required to use the Flickr object in Small Basic. Code: GraphicsWindow.BackgroundColor = "Black" Pic = Flickr.GetPictureOfMoment() GraphicsWindow.DrawResizedImage(Pic, 0, 0, 600, 400)

The Flickr Object You can use the GetRandomPicture operation of the Flickr object to get the URL of a random picture, which has the same tag in Flickr as the tag you specify. For example, if you want your desktop wallpaper to change to five different landscape photos, you can simply use the GetRandomPicture operation and specify the tag as “landscape” in the following manner. Please Note: An Internet connection is required to use the Flickr object in Small Basic. Code: For image = 1 to 5 pic = Flickr.GetRandomPicture("landscape") Desktop.SetWallPaper(pic) Program.Delay(10000) EndFor After you run the program, you see that your desktop wallpaper changes to five different landscape images every 10000 milliseconds (10 seconds).

The ImageList Object Continuing our discussion about images… Let’s look at another object offered by Small Basic that allows you to add specific images in your program. This is the ImageList object. You can use the ImageList object to load images from a specific location and store them in memory. The ImageList object provides the following operations: LoadImage—This operation loads the stored image from a local file or the Internet into the memory of your computer. You must specify the name or the URL of the file you want to load. GetHeightOfImage—This operation retrieves the height of the stored image. When using this operation, you must specify the name of the image file. GetWidthOfImage—This operation retrieves the width of the stored image. When using this operation, you must specify the name of the image file.

The ImageList Object Let’s see how you can use the various operations of the ImageList object… Let’s look at this with an example… The height and width of the image is retrieved by using the GetHeightOfImage and GetWidthOfImage operations. The GraphicsWindow is then set to the same size of the image. Now, we draw the loaded image on the GraphicsWindow. output Code: ImagePath = "C:\Microsoft Small Basic\Sunset.jpg" Image = ImageList.LoadImage(ImagePath) Width = ImageList.GetWidthOfImage(ImagePath) Height= ImageList.GetHeightOfImage(ImagePath) GraphicsWindow.Width = Width GraphicsWindow.Height= Height GraphicsWindow.DrawImage(Image, 0, 0)

The Network Object You may sometimes want to include a certain file in your Small Basic program. This file may be available on your local network or as a Web page on the Internet.   To retrieve the required file from the network, you can use the Network object in Small Basic. As you see, the Network object provides two operationsDownloadFile and GetWebPageContents. Let’s learn more about these operations and how to use them…

The Network Object You can use the DownloadFile operation of the Network object to download a file from the network to a temporary file on your local computer. You need to specify the location of the file on the network. Code: FilePath="http://www.microsoft.com/" DownloadFile = Network.DownloadFile(FilePath) TextWindow.WriteLine("Downloaded File:" + DownloadFile) The output window displays the location of the downloaded file on your computer.

The Network Object You can use the GetWebPageContents operation of the Network object to get the contents of a specified Web page. output In this case, the output window displays the HTML code of the Web page, “http: //www.microsoft.com/”. Code: FilePath = "http://www.microsoft.com/" WebPageContent = Network.GetWebPageContents(FilePath) TextWindow.WriteLine("Page Content: ") TextWindow.WriteLine(WebPageContent)

Let’s Summarize… Congratulations! Now you know how to: Use different operations of the Flickr object. Use different operations of the ImageList object. Use different operations of the Network object.

It’s Time to Apply Your Learning… Write a program that performs the following operations: Load 10 images of animals from Flickr. Set the height and width of the graphics window similar to that of the images. Display the downloaded images in the graphics window. Change the image every 2000 milliseconds. Solution: While picture < 10 ImagePath = Flickr.GetRandomPicture("Animals") Images = ImageList.LoadImage(ImagePath) GraphicsWindow.Height = ImageList.GetHeightOfImage(Images) GraphicsWindow.Width = ImageList.GetWidthOfImage(Images) GraphicsWindow.DrawImage(Images, 0, 0) Program.Delay(2000) picture = picture + 1 EndWhile