Book contents
- Frontmatter
- Contents
- Preface
- 1 Fundamentals of Design and Programming – Starting from Scratch
- 2 Variables and Constants – A Place for Everything and Everything in Its Place
- 3 Writing Programs – First You Walk, Then You Run
- 4 Writing Programs II – More Controls and New Logic
- 5 Using If and Case – Decisions, Decisions, Decisions
- 6 Loops – Once Is Not Enough
- 7 Procedures and Functions – Divide and Conquer
- 8 Writing Programs III – Tying It All Together, So Far
- 9 File I/O – Files and Records and Fields, Oh My!
- 10 Arrays and Structures – Organizing Data
- 11 Events and More Controls – Tips and Tricks for Programming
- 12 Objects and Classes – Objects Are in a Class By Themselves
- 13 Graphics – The Visual (and Audio) Side of Visual Basic
- 14 LINQ to SQL – The World Runs on Databases
- 15 Crystal Reports – Tying Databases to Output
- Appendices
- Index
13 - Graphics – The Visual (and Audio) Side of Visual Basic
Published online by Cambridge University Press: 05 June 2012
- Frontmatter
- Contents
- Preface
- 1 Fundamentals of Design and Programming – Starting from Scratch
- 2 Variables and Constants – A Place for Everything and Everything in Its Place
- 3 Writing Programs – First You Walk, Then You Run
- 4 Writing Programs II – More Controls and New Logic
- 5 Using If and Case – Decisions, Decisions, Decisions
- 6 Loops – Once Is Not Enough
- 7 Procedures and Functions – Divide and Conquer
- 8 Writing Programs III – Tying It All Together, So Far
- 9 File I/O – Files and Records and Fields, Oh My!
- 10 Arrays and Structures – Organizing Data
- 11 Events and More Controls – Tips and Tricks for Programming
- 12 Objects and Classes – Objects Are in a Class By Themselves
- 13 Graphics – The Visual (and Audio) Side of Visual Basic
- 14 LINQ to SQL – The World Runs on Databases
- 15 Crystal Reports – Tying Databases to Output
- Appendices
- Index
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 2010The Very Beginner's Guide, pp. 515 - 570Publisher: Cambridge University PressPrint publication year: 2010