1 / 5

Media Computation Questions

Media Computation Questions. Barb Ericson Georgia Tech. Day 2 Questions. How to set the classpath to use Converter in Eclipse? I want to try making a jar and using that How do you save the pictures you have changed? use the write method Picture p =

khan
Download Presentation

Media Computation Questions

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Media Computation Questions Barb Ericson Georgia Tech

  2. Day 2 Questions • How to set the classpath to use Converter in Eclipse? • I want to try making a jar and using that • How do you save the pictures you have changed? • use the write method Picture p = new Picture(FileChooser.getMediaPath("barbara.jpg"); p.explore(); p.decreaseRed(); p.explore(); p.write(FileChooser.getMediaPath("decRedBarb.jpg")); • Why is this better than just using Photoshop? • If you just learn photoshop you are limited by what it can do • If you learn to program you are not limited by your application

  3. Precision Drawings • How would you draw a stack of filled rectangles starting from the lightest one at the bottom right and the darkest one at the top left. • With 10 pixels between each • Not easy with drawing packages

  4. Draw Filled Rectangles Method public void drawFilledRectangles() { Graphics g = this.getGraphics(); Color color = null; // loop 25 times for (int i = 25; i > 0; i--) { color = new Color(i * 10, i * 5, i); g.setColor(color); g.fillRect(0,0,i*10,i*10); } }

  5. HW2: Create a collage, but must use turtles

More Related