To start, in my c:\data
folder, I have a file called lessonimage. As you can see in Figure 25.4.1, the writing on the Coke can is red and the background seems to be reddish-brown:
Figure 25.4.1: The image to be used for inverting colors at the pixel level in this chapter
What we will do is switch the colors around, so that the writing on the Coke can, for example, will become green, and you will learn how you can manipulate images at the individual pixel level.
Open up a new project. Delete the two lines that begin with <div...
; also delete the Label
line this time. You don't need any of them.
Next, you need to insert a Button
control into the <html>
page. To do this, go to Toolbox
, grab a Button
control, and drag and drop it below the line beginning with <form id=...
. Change the text on the first button to say Load
.
Now you need to insert an image control into the <html>
page. So, go back to Toolbox
, grab...