1,234
edits
Changes
→Lab
= Lab =
You will need to use Matrix or your own Linux for this lab. == Gimp == * Find a JPEG photo online, with width:height ration of 4:3. The contents don't matter - mountains, trees, flowers, sky, whatever. For exmaple something from http://amdwallpapers.webspaceforme.net/gallery/ Save the image as step1.jpg * Open the image with Gimp. Notice that most likely you're seeing a scaled down version, the zoom level is displayed at the bottom of the window. * Resize the image to 900x720, save the result as step2.jpg * Crop the step2.jpg so that you end up with a square 720x720. Do not scale the image, the proportions of the content should stay the same. Note: gimphas a menu option to do this. Save the result as step3.jpg * Draw a circle with the radius of 100 (hint: the selection tool will help). Remove any selections you made (select menu). Now draw some squiggles with the paintbrush tool. Now draw some straight lines using the same tool like this: click at the beginning of the line, press shift, and click at the end of the line. Save the result as step4.jpg * Save step4.jpg as step4.bmp. Note how much bigger the bitmap is. == Dia == * Draw your family tree (it doesn't have to be real, just different from other students) in Dia using shapes (perhaps boxes), arrows from children to parents, and lines without arrows between spouses. Change the colours for males to be blue (boxes and lines) and red for females. * When you choose the type of shape to use for a person - consider how you will add a name to it. Some shapes can contain text, and for others you have to add the text as a separate object. * Save your diagram as family.dia and also export your diagram as a PNG file family.png. * Now let's say someone new joined your family and you need to add them to the tree. In dia add the new person in green, do not export it as a PNG again. Now open family.png in an image editor (Gimp on linux, Paint on windows, anything) and insert the new person directly into there as well. Save your attempt. This is why we have vector graphics. == Convert == Convert is a commandline utility that can be used for format conversion. * Bring up a terminal window, cd into the folder where you saved all the files above. Run:<pre>convertstep1.jpg step1.gif</pre>