Thursday, March 19, 2020

Free Essays on Heroism In Beowulf And Sir Gawain

â€Å"Disposable Heroes† Throughout time our concept of heroes has changed dramatically. Even in the recent past heroes have gone from comic book characters such as spider man or superman, to the men and women who risked their lives on September 11th. In comparison, it is also clear how the concept of heroes changed from the time of Beowulf, possibly written as early as 1100 AD, to Sir Gawain and the Green Knight, composed around 1400 AD. Though both considered heroes, Beowulf and Sir Gawain are drastically different characters in personality, ability, and perspective. The similarities are few; each performs deeds for which they gain fame and honor, and each is seen, in their own respects, as a model of virtue. It is evident through their many differences how the concept of heroism changes from the time of Beowulf to Sir Gawain and the Green Knight. Beowulf is a hero who is very sure of his abilities. This is clear when Beowulf is about to battle Grendel because he says, When it comes to fighting, I count myself as dangerous any day as Grendel. So it wont be a cutting edge I’ll wield to mow him down, easily as I might. He has no idea of the arts of war, of shield or sword-play, although he does posses a wild strength. No weapons, therefore, for either this night: unarmed he shall face me if face me he dares. (46) It is obvious here that Beowulf is confident in his ability to fight as well as his strength. Many great men have tried to defeat Grendel and have failed for many years until Beowulf fights him. Even though he knows how dangerous Grendel is, he still wishes to make the battle a fair fight, so he decides to battle unarmed like Grendel. When he decides to make the fight fair by battling unarmed, Beowulf also shows his bravery. Beowulf’s bravery could not be matched by any other at his time, for he was willing to fight even when he knew it would cost him his own life. When fighting the fire-breathing dragon, the dragon ... Free Essays on Heroism In Beowulf And Sir Gawain Free Essays on Heroism In Beowulf And Sir Gawain â€Å"Disposable Heroes† Throughout time our concept of heroes has changed dramatically. Even in the recent past heroes have gone from comic book characters such as spider man or superman, to the men and women who risked their lives on September 11th. In comparison, it is also clear how the concept of heroes changed from the time of Beowulf, possibly written as early as 1100 AD, to Sir Gawain and the Green Knight, composed around 1400 AD. Though both considered heroes, Beowulf and Sir Gawain are drastically different characters in personality, ability, and perspective. The similarities are few; each performs deeds for which they gain fame and honor, and each is seen, in their own respects, as a model of virtue. It is evident through their many differences how the concept of heroism changes from the time of Beowulf to Sir Gawain and the Green Knight. Beowulf is a hero who is very sure of his abilities. This is clear when Beowulf is about to battle Grendel because he says, When it comes to fighting, I count myself as dangerous any day as Grendel. So it wont be a cutting edge I’ll wield to mow him down, easily as I might. He has no idea of the arts of war, of shield or sword-play, although he does posses a wild strength. No weapons, therefore, for either this night: unarmed he shall face me if face me he dares. (46) It is obvious here that Beowulf is confident in his ability to fight as well as his strength. Many great men have tried to defeat Grendel and have failed for many years until Beowulf fights him. Even though he knows how dangerous Grendel is, he still wishes to make the battle a fair fight, so he decides to battle unarmed like Grendel. When he decides to make the fight fair by battling unarmed, Beowulf also shows his bravery. Beowulf’s bravery could not be matched by any other at his time, for he was willing to fight even when he knew it would cost him his own life. When fighting the fire-breathing dragon, the dragon ...

Tuesday, March 3, 2020

Proportionally Resize an Image (TBitmap)

Proportionally Resize an Image (TBitmap) In graphics programming a thumbnail is a reduced-size version of a picture. Heres an idea for your next application: create a form picker to let users easily select and navigate through open forms by displaying thumbnails of them all in a dialog window. Interesting idea? Sounds like the Quick Tabs feature of the IE 7 browser :) Before actually creating such a neat feature for your next Delphi application, you need to know how to grab the image of the form (form-screen shot) and how to proportionally resize it to the desired thumbnail image. Proportional Picture Resizing: Creating Thumbnail Graphics Below you will find a block of code to take the image of a form (Form1) by using the GetFormImage method. The resulting TBitmap is then resized to fit the maximum thumbnail width (200 pixels) and/or height (150 pixels).Resizing maintains the aspect ratio of the image. The resulting image is then displayed in a TImage control, named Image1. const   Ã‚  maxWidth 200;   Ã‚  maxHeight 150; var   Ã‚  thumbnail : TBitmap;   Ã‚  thumbRect : TRect; begin   Ã‚  thumbnail : Form1.GetFormImage;   Ã‚  try   Ã‚  Ã‚  Ã‚  thumbRect.Left : 0;   Ã‚  Ã‚  Ã‚  thumbRect.Top : 0;   Ã‚  Ã‚  Ã‚  //proportional resize   Ã‚  Ã‚  Ã‚  if thumbnail.Width thumbnail.Height then   Ã‚  Ã‚  Ã‚  begin   Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  thumbRect.Right : maxWidth;   Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  thumbRect.Bottom : (maxWidth * thumbnail.Height) div thumbnail.Width;   Ã‚  Ã‚  Ã‚  end   Ã‚  Ã‚  Ã‚  else   Ã‚  Ã‚  Ã‚  begin   Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  thumbRect.Bottom : maxHeight;   Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  thumbRect.Right : (maxHeight * thumbnail.Width) div thumbnail.Height;   Ã‚  Ã‚  Ã‚  end;   Ã‚  Ã‚  Ã‚  thumbnail.Canvas.StretchDraw(thumbRect, thumbnail) ; //resize image   Ã‚  Ã‚  Ã‚  thumbnail.Width : thumbRect.Right;   Ã‚  Ã‚  Ã‚  thumbnail.Height : thumbRect.Bottom;   Ã‚  Ã‚  Ã‚  //display in a TImage control   Ã‚  Ã‚  Ã‚  Image1.Picture.Assign(thumbnail) ;   Ã‚  finally   Ã‚  Ã‚  Ã‚  thumbnail.Free;   Ã‚  end; end; Note: The GetFormImage only copies the form client area - if you need to take the entire screen shot of a form (including its border) youll need a different approach ...more about it next time.