DOC PREVIEW
TRINITY CSCI 1320 - Graphics

This preview shows page 1-2-3 out of 9 pages.

Save
View full document
Premium Document
Do you want full access? Go Premium and unlock all 9 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

More Graphics 3 23 2011 Opening Discussion Minute essay comments Following along in class and little errors Animation suggestions g drawAnimation Importing movie files Doing gradient paints Add a Timer and cycle through images IcP solutions Images We talked briefly last time about how to load images with ImageIO We need to talk a bit more about the BufferedImage It is a raster image a 2 D grid of pixels If you make a BufferedImage you can use createGraphics to get a Graphics2D that will draw to it Double Buffering The proper way to write the paint method is to have a BufferedImage that you draw to then draw the image to the provided Graphics2D object This is called double buffering and it prevents flicker and can make things run faster Mouse Events There are several types of events that relate to the mouse MouseClicked MouseDragged MousePressed Listen to one of the publishers on a component mouse clicks mouse moves mouse wheel Key Events There are three event types for keys KeyPressed KeyReleased KeyTyped Listen to the keys object in a component to get these Compare the key value in the event to values in the Key object if e key Key A if e key Key Left TexturePaint Now that we can use images we can test out the TexturePaint Writing Transforms Last time we mentioned AffineTransforms but didn t see what they can do Let s take some time now to write code that uses an AffineTransform in our drawing Minute Essay Questions about graphics before we move to sorting


View Full Document

TRINITY CSCI 1320 - Graphics

Documents in this Course
Functions

Functions

10 pages

Functions

Functions

10 pages

Graphics

Graphics

10 pages

Graphics

Graphics

11 pages

Loops

Loops

4 pages

Loops

Loops

3 pages

Strings

Strings

9 pages

Functions

Functions

10 pages

Loops

Loops

11 pages

Graphics

Graphics

11 pages

Graphics

Graphics

12 pages

Sorting

Sorting

11 pages

Sorting

Sorting

10 pages

Arrays

Arrays

10 pages

Loops

Loops

18 pages

Load more
Download Graphics
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Graphics and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Graphics and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?