O'Reilly Forums: Why These Applied To Different Canvases - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Why These Applied To Different Canvases videobooth.js ch.8 video line 135-6 about

#1 User is offline   lse123polis 

  • Active Member
  • PipPip
  • Group: Members
  • Posts: 39
  • Joined: 04-October 09

Posted 27 November 2012 - 01:19 AM

	buffer.drawImage(video, 0, 0, bufferCanvas.width, displayCanvas.height);
	var frame = buffer.getImageData(0, 0, bufferCanvas.width, displayCanvas.height);



why these applied to different canvases?
bufferCanvas.width, displayCanvas.height

videobooth.js ch.8 video line 135-6 about
0

#2 User is offline   Beth Robson 

  • Advanced Member
  • PipPipPipPipPipPipPipPip
  • Group: O'Reilly Employee
  • Posts: 321
  • Joined: 17-September 08
  • Gender:Female
  • Location:Seattle, WA
  • Interests:I am interested in computer science, the Web, social media and the internet, Mac development, and adult learning.

Posted 27 November 2012 - 05:33 PM

A mistake in the book (now corrected). It should be the bufferCanvas for both.
Elisabeth Robson
Co-founder, WickedlySmart.com
Author: Head First HTML5 Programming, Head First HTML and CSS, Head First Design Patterns
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users