Wednesday, March 24, 2010

improving image quality

As you can see, the image is smaller again, but the quality has improved. First I have to remove part of the coding which makes that icon and link to Picasa. In order to change the image size, this time I don't have the width and height parameters showing in the code. Yeah. But what I can do is turn the s400 number, which does show in there, into s800.

So from this:

<div style='text-align:center;margin:0px auto 10px;'><a href='http://1.bp.blogspot.com/_kwcZ6o5jNCw/SqY2LNT8H9I/AAAAAAAAEjQ/2VsHtsfcuiY/s1600-h/indian+child-1.jpg'><img src='http://1.bp.blogspot.com/_kwcZ6o5jNCw/SqY2LNT8H9I/AAAAAAAAEjQ/2VsHtsfcuiY/s400/indian+child-1.jpg' border='0' alt='' /></a> </div><div style='clear:both; text-align:CENTER'><a href='http://picasa.google.com/blogger/' target='ext'><img src='http://photos1.blogger.com/pbp.gif' alt='Posted by Picasa' style='border: 0px none ; padding: 0px; background: transparent none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;' align='middle' border='0' /></a></div>

We change to this:

<div style='text-align:center;margin:0px auto 10px;'><a href='http://1.bp.blogspot.com/_kwcZ6o5jNCw/SqY2LNT8H9I/AAAAAAAAEjQ/2VsHtsfcuiY/s1600-h/indian+child-1.jpg'><img src='http://1.bp.blogspot.com/_kwcZ6o5jNCw/SqY2LNT8H9I/AAAAAAAAEjQ/2VsHtsfcuiY/s800/indian+child-1.jpg' border='0' alt='' /></a> </div><div style='clear:both; text-align:CENTER'></div>

Action Method in Mvc

In this section, you will learn about the action method of controller class. All the public methods of a Controller class are called Act...