Variables - o Explore picture Makes a copy of original...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Object Variables - declaring o sets aside space for a reference to the object way to find memory assigned to that object Picture objects - drawing on a picture o can use Turtle object to draw lines Picture p = new Picture (FileChooser.pickAFile()); o Use methods moveTo(); penUp(); penDown(); - Exploring a picture o Create object Picture beachPict= new Picture(beachFile);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: o Explore picture Makes a copy of original picture and displays it beachPict(explore); get information • int width=beachPictgetwidth(); -Modified picture o Changing picture in memory not the original picture o Can make a new picture file with changed picture data pictureObj.write(pathWithFile);...
View Full Document

This note was uploaded on 02/28/2011 for the course CSCI 053 taught by Professor Sibert during the Fall '10 term at GWU.

Ask a homework question - tutors are online