Module 10 WPF 2-D Graphics, Multimedia, and Printing.

Slides:



Advertisements
Similar presentations
Using Xps Common Scenarios in Xps. Overview PrintingLoadingSerializingManipulating.
Advertisements

Lesson 15 Presentation Programs.
Iframes & Images Using HTML.
L.Ghadah R. Hadba CT1514-L1.  Computer Graphics :refers to processing of creating a new image from Geometry, Lighting parameters, Materials and Textures.Using.
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
Adobe Flash CS4 – Illustrated Unit E: Optimizing and Publishing a Movie.
PowerPoint Tutorial 2 Adding Media and Special Effects
Microsoft Office Illustrated Fundamentals Unit N: Polishing and Running a Presentation.
Foundation Level Course
Foundation Level Course
1 Flash and Animation Presented by : Behzad Sajed Khosrowshahi.
Chapter 8 – Part I Interactive Multimedia Authoring with Flash: Animation “Computers and Creativity” Richard D. Webster, COSC 109 Instructor Office: 7800.
PowerPoint Lesson 3 Working with Visual Elements
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall. Microsoft Office 2010 PowerPoint, Workshop 3 Applying and Modifying Multimedia.
Microsoft PowerPoint Topics
Desktop Publishing Features Designing Documents. Publication Terms  Graphics - Objects used to convey a message.  Multiple Columns - Layout used to.
1 ADVANCED MICROSOFT POWERPOINT Lesson 7 – Working with Visual and Sound Objects Microsoft Office 2003: Advanced.
© 2010 Delmar, Cengage Learning Chapter 6: Preparing and Publishing Movies.
Working with Graphics. Objectives Understand bitmap and vector graphics Place a graphic into a frame Work with the content indicator Transform frame contents.
Module 15 Configuring and Deploying Windows Client Applications.
Dreamweaver Domain 3 KellerAdobe CS5 ACA Certification Prep Photoshop Domain 5: Publishing Digital Images Using Adobe Photoshop CS5 Adobe Creative Suite.
Lesson 17 Enhancing Presentations with Multimedia Effects
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. M I C R O S O F T ® Animating and Using Multimedia Effects Lesson 10.
Computer Science [3] Java Programming II - Laboratory Course Lab 7: Multimedia: Applets and Applications Faculty of Engineering & IT Software Engineering.
BUILDING RICH MEDIA ELEMENTS. Design Decisions Based on Design Specification  Following the design specification will ensure that the application is.
Module 14: Configuring Print Resources and Printing Pools.
CHBT-01 Basic Micro process & Computer Operation
Module Code: CU0001NI Technical Information on Digital Images Week -2.
Chapter 6 Configuring Windows Server 2008 Printing
Module 11 Control Customization. Module Overview Overview of Control Authoring Creating Controls Managing Control Appearance by Using Visual States Integrating.
Rujchai Ung-arunyawee Department of Computer Engineering Khon Kaen University.
Tutorial 2 Drawing Text, Adding Shapes, and Creating Symbols.
HTML, Third Edition--Illustrated Brief 1 HTML, Third Edition Illustrated Brief Unit D Adding Graphics and Multimedia.
© 2012 Adobe Systems Incorporated. All Rights Reserved. Copyright 2012 Adobe Systems Incorporated. All rights reserved. ® INTRODUCTION TO FLASH ANIMATION.
® Copyright 2010 Adobe Systems Incorporated. All rights reserved. ® ® 1 INTRODUCTION TO ADOBE FLASH PROFESSIONAL CS5.
COMPREHENSIVE Windows Tutorial 7 Managing Multimedia Files.
Chapter 13-Tools for the World Wide Web. Overview Web servers. Web browsers. Web page makers and site builders. Plug-ins and delivery vehicles. Beyond.
CHAPTER TEN AUTHORING.
Tutorial 1 Introducing Adobe Flash CS3 Professional
Tutorial 7 Planning and Creating a Flash Web Site.
Macromedia Studio 8 Step-by-Step MACROMEDIA FIREWORKS 8 Project 2: Experience Bank Logo.
Module 5: Implementing Printing. Overview Introduction to Printing in the Windows Server 2003 Family Installing and Sharing Printers Managing Access to.
Module 2 Introduction to Visual Studio 2010 and WPF Version 4.
Lecture 16 Image Document Formats. Bitmap vs. Vector Images Bitmaps do not generally.
Introduction to Flash Animation CS 318. Topics Introduction to Flash and animation The Flash development environment Creating Flash animations  Layers.
Module 1 Windows Client Application Design. Module Overview Windows Client Technologies Architectural Patterns.
Digital Graphics. Formats: BMP – Bitmap image file which is used to store Bitmap digital images PNG – Portable Network Graphics GIF – Graphics Interchange.
Multimedia. What is a graphic?  A graphic can be a: Chart Drawing Painting Photograph Logo Navigation button Diagram.
Module 13 Animations in WPF. Module Overview Using Animations Using Triggers Implementing Data Visualizations.
Introduction to Interactive Media Interactive Media Tools: Authoring Applications.
Module 3 Designing and Developing a User Interface.
XP Tutorial 7 Creating a Flash Web Site. XP New Perspectives on Macromedia Flash 82 Objectives Plan and create a Flash Web site Create a Flash template.
Flash Develop Rich Internet Content and Applications –Design motion graphics or build data-driven applications Flash Document = “.fla” filename extension.
®® Microsoft Windows 7 Windows Tutorial 7 Managing Multimedia Files.
Active Matrix LCD Panel ProMax® Interactive LCD Writing Panel Active Matrix LCD Panel ProMax® Interactive LCD Writing Panel.
CHAPTER 5 Graphics Drawing Audio. Chapter objectives: Learn to draw to a canvas Examine the process of adding drawn elements and UI controls to a layout.
Microsoft PowerPoint 2010 Chapter 3 Reusing a Presentation and Adding Media.
1 Chapter 15 Creating a Presentation. Practical Computer Literacy, 2 nd edition Chapter 15 2 What’s inside and on the CD? In this chapter, you will learn.
Understanding Images. Pixels pixels Every image is made up of very small squares called pixels, and each pixel represents a color or shade. Pixels within.
Multimedia Subject: Informatics of Technology II year
OVERVIEW Objectives Follow a design document to prepare images for inclusion in a Web page Run a batch process to prepare multiple images in one step Use.
Flash Interface, Commands and Functions
Adobe Flash Professional CS5 – Illustrated
Enhancing Your Presentation with Multimedia
Graphics and Animation
Chapter 3:- Graphics Eyad Alshareef Eyad Alshareef.
.NET and .NET Core 7. XAML Pan Wuming 2017.
Graphic Editing Terms Cropping
Windows Tutorial 7 Managing Multimedia Files
Presentation transcript:

Module 10 WPF 2-D Graphics, Multimedia, and Printing

Module Overview Creating 2-D Graphics Displaying Images Adding Multimedia Creating and Printing Documents

Lesson 1: Creating 2-D Graphics 2-D Graphics Support in WPF Drawing Shapes What Are Paths and Geometries? Demonstration: Filling Shapes and Geometries Demonstration: Using and Animating Transformations

2-D Graphics Support in WPF Shapes Rectangle Ellipse Line Path Ellipse Pen Brush Geometry

Drawing Shapes Defined using Height and Width properties Defined using two points

What Are Paths and Geometries? Paths are defined by geometries, which are made up of figures and segments <Path <Path

Demonstration: Filling Shapes and Geometries In this demonstration, you will see how to: Define an Ellipse shape and a Rectangle shape Define values for the Stroke and Fill properties Create a triangle by using the Path class

Notes Page Over-flow Slide. Do Not Print Slide. See Notes pane.

Demonstration: Using and Animating Transformations In this demonstration, you will see how to: Add layout and render transformations to a Shape element Animate the transformation objects

Notes Page Over-flow Slide. Do Not Print Slide. See Notes pane.

Lesson 2: Displaying Images WPF Imaging Components Demonstration: Displaying Images in WPF Encoding and Decoding Images Rotating, Converting, and Cropping Images

WPF Imaging Components WPF introduces a new API for working with images: Image ImageBrush ImageDrawing WPF supports most popular imaging formats including: Bitmap (BMP) JPEG Portable Network Graphics (PNG) Graphics Interchange Format (GIF) Windows Media Photo (WMP)

Demonstration: Displaying Images in WPF In this demonstration, you will see how to: Display an image by using the Image control Display an image as a brush by using the ImageBrush class Display an image as a drawing by using the ImageDrawing class

Notes Page Over-flow Slide. Do Not Print Slide. See Notes pane.

Encoding and Decoding Images Decode BitmapDecoder Encode BitmapEncoder

Rotating, Converting, and Cropping Images To rotate an image: Set the Rotation property on a BitmapImage class To convert an image to a different pixel format: Use FormatConvertedBitmap To crop an image: Set the Clip property of an Image class or use CroppedBitmap

Lesson 3: Adding Multimedia WPF Support for Multimedia Media Playback Modes Displaying Media by Using a MediaElement Control Controlling the Operation of a MediaElement Control Playing Media by Using a MediaPlayer Object

Sound WPF Support for Multimedia WPF supports the playback of audio and video media by using: A MediaElement control A MediaPlayer object Video

Media Playback Modes Set the Clock property on MediaElement and MediaPlayer to specify the media playback mode Independent mode Clock mode

Displaying Media by Using a MediaElement Control To play media by using a MediaElement control:

Controlling the Operation of a MediaElement Control Control how the MediaElement control behaves by using: LoadedBehavior UnloadedBehavior Control playback through the MediaElement control by using the playback methods: Play Pause Stop Close

Playing Media by Using a MediaPlayer Object MediaPlayer is designed to be used with drawing objects <VideoDrawing x:Name="videoSurface" Rect="0,0,300,200" /> <VideoDrawing x:Name="videoSurface" Rect="0,0,300,200" /> MediaPlayer player = new MediaPlayer(); player.Open(new this.videoSurface.Player = player; player.Play(); MediaPlayer player = new MediaPlayer(); player.Open(new this.videoSurface.Player = player; player.Play(); XAML C#

Lesson 4: Creating and Printing Documents What Are Fixed and Flow Documents? Defining Fixed and Flow Documents Viewing Fixed and Flow Documents What Is the XML Paper Specification? Demonstration: Printing Documents Controlling Print Jobs Managing the Print Queue

What Are Fixed and Flow Documents? Fixed Documents: Are static, read-only, portable documents Provide WYSIWYG presentation Are independent of the display or printer hardware Flow Documents: Are a XAML construct for holding large blocks of textual data Provide an optimized viewing and reading experience Dynamically adjust and reflow content Provide additional viewing features: Searching Navigation Zooming

Defining Fixed and Flow Documents <TextBlock Text="This is a fixed document." /> <TextBlock Text="This is a fixed document." /> This is a paragraph. This is another paragraph. This paragraph has more formatting than the first. This is a paragraph. This is another paragraph. This paragraph has more formatting than the first.

Viewing Fixed and Flow Documents Search Zoom Viewing Mode Fixed documents: Use a DocumentViewer control Set the Document property of the control to the FixedDocument instance Search Navigation Zoom Viewing Mode Flow documents: FlowDocumentReader FlowDocumentPageViewer and FlowDocumentScrollViewer RichTextBox

What Is the XML Paper Specification? An XPS document: Is a package that contains one or more fixed documents Contains resources and information required for rendering: Fonts (OpenType and TrueType) Images (TIFF, PNG, JPEG, and HD Photo for bitmaps) Application data

Demonstration: Printing Documents In this demonstration, you will see how to: Create a PrintDialog dialog box and return a PrintQueue instance Create an XpsDocumentWriter instance Write the document to a PrintQueue instance by using the XpsDocumentWriter class

Notes Page Over-flow Slide. Do Not Print Slide. See Notes pane.

Controlling Print Jobs To query printer capabilities: Get a PrintCapabilities object for the printer Query properties on the PrintCapabilities object To instruct a printer how to process a print job: Get a PrintTicket object for the printer Configure properties on the PrintTicket object by using information about the printer capabilities

Managing the Print Queue To manage jobs on a print queue: Create a PrintServer object representing the print server Create a PrintQueue object representing the print queue Query the status of the queue Query the queue for a list of jobs pending Invoke methods on the PrintSystemJobInfo class to: Add Pause Resume Purge

Lab: Drawing 2-D Graphics Exercise 1: Choosing the Appropriate Windows Client Technology Exercise 2: Creating the Data Access Layer and User Interface Exercise 3: Drawing Shapes, Painting with Brushes, and Applying Effects Exercise 4: Adding Images Logon information Estimated time: 45 minutes

Lab Scenario You have been asked to create a new control for the Product Inventory system, which is a Windows Forms application. The control that you have been asked to develop visually graphs the transaction history of any inventory item provided. The control requires a great deal of graphical rendering; therefore, you need to choose the correct design and platform for a proof-of-concept application.

Lab Review Review Questions How do you use a single repeating image as the background of a UI element? Which control enables you to add an image to the UI?

Module Review and Takeaways Review Questions Common Issues and Troubleshooting Tips Best Practices

Notes Page Over-flow Slide. Do Not Print Slide. See Notes pane.