Skip to main content Accessibility help
×
Hostname: page-component-7479d7b7d-jwnkl Total loading time: 0 Render date: 2024-07-13T04:42:39.786Z Has data issue: false hasContentIssue false

13 - Graphics – The Visual (and Audio) Side of Visual Basic

Published online by Cambridge University Press:  05 June 2012

Jim McKeown
Affiliation:
Dakota State University
Get access

Summary

VB Quip

Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter.

Eric Raymond

“A picture is worth a thousand words,” or so said Frederick R. Barnard nearly ninety years ago. He was selling advertising for streetcars and couldn't have had computer graphics in mind. In fact, the first computer was still a generation away. But, he was pretty accurate because it just might take a thousand words of computer code to generate a good picture. Remember that the computer takes baby steps and every step has to be clearly described. The same is true with graphics. You can place pictures on your form and you can create graphics – beautiful graphics if you take the time – but you have to write some code to do it. Visual Basic can draw lines and shapes, it can work with text, and it's great with colors. It just takes a little work to create them and a little code to do it right. This chapter introduces the basics for graphics, sound, and multimedia. When it's over, you'll be able to play sound and video, create simple shapes, and draw and paint with the computer.

Graphic Basics

There are several ways to add graphics to a program. You've already worked with the PictureBox to add graphics. But there's so much more.

Type
Chapter
Information
Programming in Visual Basic 2010
The Very Beginner's Guide
, pp. 515 - 570
Publisher: Cambridge University Press
Print publication year: 2010

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×