2D drawing basics For CSE 3902 By: Matt Boggus. Overview 2D coordinate systems Raster images Sprite drawing in XNA.

Slides:



Advertisements
Similar presentations
Raster Graphics 2.01 Investigate graphic image design.
Advertisements

Tech Technicalities I Mills SOC128 Fall 2013 Dan Ryan.
Page Image Compression for Large-Scale Digitization Sample Images JPEG 2000 Yale University Library January, 2008.
Nice Calm Scene. (You’ll need it.). Skills Getting files off of the camera or scanner Getting files off of the camera or scanner Archiving Archiving Choosing.
Graphics on the Web CS575 Spring 2006 Dr.Abbot Student: Andre Liv.
Images.
Graphics in the web Digital Media: Communication and Design
Graphics and Images September 28, Unit 3.
Data starts with width and height of image Then an array of pixel values (colors) The number of elements in this array is width times height Colors can.
Comparison of image compression algorithms ECE-533 Paula Aguilera.
Chapter 3 Adding Images in HTML. Agenda Understanding Web Page Images Prepare Your Images for the Web Insert an Image Specify an Image Size Add Alternative.
Color Names All standards-compliant browsers should handle these color names These color names can be used with the CSS properties of color and background-color.
Task 01 – Explain how different types of graphical images relate to file formats, file conversions, formats and compression. Emily Riley.
CHAPTER 4 Images XNA Game Studio 4.0. Objectives Find out how the Content Manager lets you add pictures to Microsoft XNA games. Discover how pictures.
Image Storage Bitmapped Graphics – in which an image is represented as a collection of dots Vector Graphics – in which an image is represented as a set.
THE THEORY & CONCEPTS Lesson 1 – Part 1. What is Graphic Design It’s a CREATIVE PROCESS Undertaken in order to convey a specific message/s I can’t teach.
1 JPEG v JPEG stands for Joint Photographic Experts Group v Superior for continuous tone, photographic color images not good on sharp-edges or flat-colornot.
Understanding Images on the Computer How do images work and why?
Common file formats  Lesson Objective: Understanding common file formats and their differences.  Learning Outcome:  Describe the type of files which.
Image Representation. Objectives  Bitmaps: resolution, colour depth and simple bitmap file calculations.  Vector graphics: drawing list – objects and.
Information Processes and Technology Multimedia: Graphics.
Computer Images Can store color info about each pixel, but makes file BIG Compression for Web 15.
Image File Types Module 4: Working with Images LESSON 5.
Graphics workshop Library and Information Services University of St Andrews.
File Formats and Vector Graphics. File Types Images and data are stored in files. Each software application uses different native file types and file.
(59003)
Graphic Format Factors
$1 Million $500,000 $250,000 $125,000 $64,000 $32,000 $16,000 $8,000 $4,000 $2,000 $1,000 $500 $300 $200 $
Things to Remember When working with digital images.
Adobe Dreamweaver CC: The Professional Portfolio Project 3: Photographer’s Web Site Working with static images Controlling backgrounds with CSS Working.
Chapter 12 Web Publishing. Goals Become an image optimization master Get a handle on Web file formats, including SVG and SWF Learn about Web image color.
SC ICT Certification Level 1 12 Graphics By Ross Parker.
Images. Digital Images Rectangular arrays of pixel data Pixel - picture element, smallest addressable part of the frame buffer. Color depth - the depth.
Raster Graphics 2.01 Investigate graphic image design.
XNA Basic Displaying Image & Collision Detect. What’s format image that XNA support? XNA support only.bmp.png and.jpg image..PNG have transparent region.
Color and Images. Color The natural colors we see and the colors we see on computer monitors are different. ______ -natural ______ -monitor.
Graphics. … Can be immersive and capture imaginations. Largest Photographs In The World.
File Texture Mapping Pasting images on primitives.
Exploring Web Design Chapter 1. Objectives Develop a new perspective of the WWW Learn what makes a website good or bad Discover how to apply objective.
21 st Century Technology. Painting Uses Pixels Quality of image Changes Drawing Uses Vectors or Lines Quality of Image Does NOT Change.
Digital File Formats By Ali Aslam. JPEG JPEG Stands for Joint Photographic Experts Group. JPEG uses a lossy compression routine. Lossy compression means.
Digital Graphics for Computer Games Pixels Types of Digital Graphics (Raster and Vector) Compression.
1 Perception and VR MONT 104S, Fall 2008 Lecture 20 Computer Graphics and VR.
GIF vs. JPEG GIF and JPEG (JPG) image formats are different. You should know which to use when. Here are some examples.
Information Systems Design and Development Media Types Computing Science.
Computer Graphics Lesson 2 July 12, 2005 Image Formats What are some formats you are familiar with? There are 4 basic image format types: Uncompressed.
Common Bitmap Image File Types
2D drawing basics For CSE 3902 By: Matt Boggus.
Introduction to raster graphics
2.01 Investigate graphic image design.
Raster Images CPSC 1030.
2D Drawing Basics 1.
LESSON 5 Module 4: Working with Images Image File Types.
Image File Size and File Compression
File size and image quality
Graphics.
1.01 Investigate graphic types and file formats.
File Texture Mapping Pasting images on primitives.
File Formats V
Notes on the color table and indexed color concept
Web Design and Development
MED 2001 Advanced Media Production
ИНФОРМАТИКА И РАЧУНАРСТВО Наставна тема: РАЧУНАРСКА ГРАФИКА
2.01 Investigate graphic image design.
COMS 161 Introduction to Computing
Basic Concepts of Digital Imaging
timo. fi (59003) www. biocenter
2.01 Investigate graphic image design.
Exam Objectives: Identify Design Elements When Preparing Images
2.01 Investigate graphic image design.
Presentation transcript:

2D drawing basics For CSE 3902 By: Matt Boggus

Overview 2D coordinate systems Raster images Sprite drawing in XNA

Coordinate system A coordinate system is a system which uses one or more numbers, or coordinates, to uniquely determine the position of a point For a 2D coordinate system, we need Origin 2-Tuple of position relative to the origin

2D coordinate system examples Cartesian Coordinates ( coordinate-system.svg) Polar Coordinates ( svg)

XNA’s coordinate system

Raster images troduction/raster_data.html

Raster image types PPM Uncompressed, human readable GIF 8 bits per pixel per channel (RGB) JPEG Lossy data compression PNG Lossless data compression

Sprite drawing in XNA SpriteBatch object Begin (call once to start specifying sprites to draw) Begin Draw (each call specifies another sprite to draw) Draw End (call once to finish specifying sprites to draw) End

SpriteBatch Draw methods public void Draw ( Texture2D texture, Rectangle destinationRectangle, Nullable sourceRectangle, Color color ) public void Draw ( Texture2D texture, Rectangle destinationRectangle, Color color ) Example Image File / Texture2D XNA rectangle object Drawing window