51 - Graphics and Multimedia - CG
51 - Graphics and Multimedia - CG
51 - Graphics and Multimedia - CG
Graphical communication is an old and more popular method of exchanging information than verbal communication and is more convenient when computers are utilized for this purpose. As the volume of information increases, problem of storage arises. Also, in the 21st century people do not have time to read huge number of pages. This problem was solved by computer graphics. This can be clearly understood with the help of an example where we wantwe want to present the performance of a factory since 1980. For this, we requirewe require a number of pages to render this large volume of information related with financial, numerical and statistical information. It will take a lot of time to analyze such a long report. We canWe can easily represent this data in a pictorial form thus making it simple to understand. Pictures can represent a huge database in the form of bar charts, pie charts, and so on. Two other prominent applications of graphics are in the field of Computer Aided Design (CAD) and Computer Aided Manufacturing (CAM). In CAD, graphics techniques are used to produce the drawings of certain parts of a machine from any viewing angle. In CAM computer graphics techniques, one may display the manufacturing layout
for a given part and trace the path taken by machine tools for a given manufacturing process. 2. Define computer graphics and Interactive computer graphics? Ans. Computer graphics can be defined as the use of computers to define, store, manipulate, interrogate, and present pictorial output of the data. Interactive computer graphics refers to devices and systems that facilitate the man-machine graphic communication. 3. Briefly, narrate the history of graphics hardware technology? Ans. In early days, the high cost of the hardware for computer graphics remained the obstacle, which prevented their widespread use. Computers have been getting progressively more inexpensive and it has become a household article these days. The microelectronics revolution and the subsequent reduction in the price of the digital hardware have completely changed the situation. Due to this price reduction, it is now realistic to expect that all computers with graphic display hardware capability will be making extensive use of computer graphics. The announcement of the IBM personal computer using 16-bit Intel 8088 microprocessor on August 12, 1981, can be regarded as a historic event, which had a profound effect in the world of computers. These computers significantly improved the state of display technology in the world of computers. The next major change in PC display technology was announced by Apple Company in 1984, when it introduced the Macintosh PC. It was the first PC that did not include a text-based display but provided only a graphic display. The application programs developed for the Macintosh advocated WYSIWYG (What You See Is What You Get) style of interface. This concept has become a basic requirement in the area of desktop publishing (DTP). The PowerPC's from IBM, Apple, and other vendors created a new standard for DTP computers. With such a development, computer graphics and multimedia has become a necessity for all types of users. 4. How to make graphics processing faster? Ans.
NIIT
Video/Graphic processing can be made faster in two ways: by using a graphic co-processor and a graphic accelerator. The graphic co-processor boosts video performance by assuming tasks normally handled by the CPU. An accelerator takes control of graphic task, which are otherwise performed by the CPU. However, an accelerator is not programmable. It is a functioned processor, which caries out specific tasks hard-coded into the chip. 5. What is graphics processor? Why it is needed? Ans. Graphics processor helps in managing the screen faster with an equivalent software algorithm executed on the CPU. Through the use of these processors certain amount of parallelism can be achieved for executing graphic commands. Several manufacturers of personal computers use a proprietary graphics processor. 6. Name some graphics processors. Ans. Some graphics processors are:
7. Justify the statement "Windows OS is so popular"? Ans. The Windows OS is popular because it supports a graphical user interface (GUI), in which users can perform operations with the help of graphical objects such as windows and buttons. Apart from an intuitive GUI, it supports various other features such as support for integrated application environment, multitasking, multimedia, and networking.
8. What are the strengths of UNIX operating system? Ans. The Unix operating system has been known and popular as a simple, small, portable, powerful, time-sharing operating system. However, now it has also gained commercial strength. It is still the most portable and configurable of all operating systems. Unix has adopted to the new hardware architecture and application requirements by incorporating new functionalities such as distributed file system, X11 base GUIs, Multi threading, distributability and so on. Unix became quite popular within Bell Labs. 9. What is a pixel? Ans. Pixel may be defined as the smallest size object or color spot that can be displayed and addressed on a monitor.
NIIT
10. Give the different applications of Computer Graphics. Ans. Computer graphics is used in every field. Some of the major application areas are: a. b. c. d. e. f. g. h. Building design and construction Electronic Design Mechanical Design Entertainment and Animation Aerospace industry Medical Technology Cartography Art and Commerce.
11. Name the Computer languages that support Computer Graphics. Ans. Some languages that support computer graphics are: a. b. c. d. FORTRAN BASIC PASCAL C
12. Why C language is popular for graphics programming? Ans. C has become a choice for today's professionals, developers for graphics programming. C is a structured language and is rich in expressive power and applicable to a wide variety of users. Because of the rich set of graphical functions available, this language helps in designing for graphical applications. The C code is small, fast, portable, and flexible.
NIIT
Solutions to Chapter Two Questions 1. Compare the merits and demerits of raster and random scanning system. Ans. 1. In raster scan display, the electron beam is swept across the screen, one row at a time from top to bottom. Random scan monitors draw a picture one line at a time and so they are also referred to as vector displays. 2. Refreshing on raster scan display is carried out at the rate of 60 to 80- frames per second. Refresh rate on a random scan system depends on the number of lines to be displayed. 3. The picture definition is stored in a memory area called refresh buffer or frame buffer in case of a raster scan display. In case of random scan display, picture definition is stored as a set of line-drawing commands in an area of memory referred to as the refresh display file. Refresh display file is also called the display list, display program, or the refresh buffer. 2. Define pixel, resolution, and aspect ratio. Ans. Pixel can be defined as the smallest size object or color spot that can be displayed and addressed on a monitor. Image resolution refers to pixel spacing that is the distance from one pixel to the next pixel. The aspect ratio of the image is the ratio of the number of X pixels to the number of Y pixels. The standard aspect ratio for PCs is 4:3 and some use 5:4. 3. Explain the principle of drawing pictures on CRT. Ans. In CRT, an electron gun produces a stream of electrons. This electron beam can be switched on/off through a heating system. The electron beam is focused towards the phosphor coated screen. The point where the beam hits the screen becomes phosphorent and produces a speck of light. A pair of focusing grids, focus the beam to a particular point on the screen. The grid controls the focusing with the help of magnetic/electric fields. In this way a whole picture can be drawn by illuminating the points on the screen.
4. Explain briefly the working principle of Shadow mask CRT. Ans. The Shadow Mask CRT is based on the principle of combining the basic colors - red, green and blue. The shadow mask CRT, instead of using one electron gun, uses three different guns placed adjacent to each other to form a triangle or a "Delta". Each pixel point on the screen is made up of three types of phosphors to produce red, blue, and green colors. Just in front of the phosphor screen, is a metal screen, called a "shadow mask". This plate has holes placed strategically, so that the beams from the three electron guns are focused on particular color- producing pixel only.
NIIT
Now, unlike the beam penetration CRTs, the acceleration of the electron beam was being monitored, one can manipulate the intensity of the three beams simultaneously. If the red beam is made more intense, we get more of red color in the final combination etc. Since fine-tuning of the beam intensities is comparatively simple, we can get much more combination of colors than the beam penetration case. 5. Explain the principle of DVST system. Ans. The Direct View Storage Tube (DVST) behaves like a CRT with highly persistent phosphor. Pictures drawn on this screen will be seen for several minutes (40-50 minutes) before fading. It is similar to a CRT as far as the electronic gun and phosphor-coated mechanisms are concerned. However, instead of the electron beam directly writing the pictures on the phosphor coated CRT screen, the writing is done with the help of a fine-mesh wire grid. The grid made of very thin, high quality wire is located with a dielectric and is mounted just before the screen on the path of the electron beam from the gun. A pattern of positive charges is deposited on the grid and this pattern is transferred to the phosphor coated CRT by a continuous flood of electrons. This flood of electrons is mounted by a "flood gun", which is separate from the electron gun that produces the main electron beam. 6. What are the different graphical input interactive techniques? Ans. Following are the various graphical input interactive techniques: a. b. c. d. e. Positioning Constraints Grids Gravity Field Rubber band methods .f)Dragging.
NIIT
7. Why refreshing is required in CRT? Ans. When an electron beam strikes a dot of phosphor material, it glows for a fraction of a second and then fades. As brightness of the dots begins to reduce, the screen image becomes unstable and gradually fades out. In order to maintain a stable image, the electron beam must sweep the entire surface of the screen and return to redraw it number of times per second. That is, the screen must be refreshed multiple times in a second. 8. Name the different positioning devices. Ans. The various positioning devices are:
9. What are pointing devices? Give examples. Ans. A pointing device is a hardware peripheral that allows user to point to objects on the screen and perform operations on them, such as selecting, clicking, moving, and dragging. Mouse is an example of pointing device. 10. Explain the working principle of Mouse. Ans. A mouse is a small handled box used to position the screen cursor. It has two wheels at right angles to each other. Each of these wheels is connected to the shaft encode. For every incremental rotation of the wheel, an electrical signal is produced by the shaft encode. As the device is moved on a flat surface, the movement is coded in the x and y directions by counting the number of pulses received from the shaft encoder. These values are held in separate registers and the computer can sample them at a suitable rate. The device can, therefore, be used for a moving cursor around the display screen.
11. Explain the working of Light pen along with a diagram. Ans. Light pen has a very simple working. Every pixel on the screen that is a part of the picture emits light. All that the light pen does is to make use of this light signal to indicate the position. A small aperture is held against the portion of the picture to be modified and the light from the pixels falls on a photocell, after passing through the aperture. This photocell converts the light signal received from the screen to an electrical pulse to be sent as a signal sent to the computer.
NIIT
Since the electrical signal is rather weak, an amplifier amplifies it before being sent to the computer. A "tracking software" keeps track of the position of the light pen always. Through the use of the tracking software, a signal received by the light pen at any point indicates the portion of the picture that needs to be modified. Note that ,that, when the pen is being moved to its position, to the position where the modification is required, it, it will encounter various other light sources on the way. These light sources should not trigger the computer to accept the signal. So the aperture of the light pen is normally kept closed till the final position is reached, and then it can be opened by a switch. 12. If we use 3 bits for primary colors how many different colors are possible? Ans. 8 colors are possible. 13. How many different choices are possible if we use 24 bits per pixel? Ans. 16.7 million (224) colors. appropriate refresh rate is considered to be 72 and 85 Hz.
Solutions to Chapter Three Questions 1. Compare the features of text and graphics mode? Ans. The following table compares the text and graphics modes: Text mode You can only handle text. You can display in 16 colors on a color monitor. Text mode display is in two forms, 25 rows of 40 columns or 25 rows of 80 columns. Graphics mode You can display, capture, and animate figures. You can display various colors. The resolution of the graphics mode depends on the adapter.
NIIT
2. With the help of an illustration, explain how initgraph() function works. Ans. The initgraph() function is used to initialize the graphics system to load appropriate graphics drive and video mode used by the graphics functions. The syntax of this function is: initgraph(int *driver, int *mode, char *path) As its parameters, you must specify the graphics mode such as EGA, or VGA (depends on the graphics adapter being used), the graphics driver (a program that interfaced between the hardware and your C program), and path of the graphics driver. For example, to initialize graphics mode in CGA high resolution mode: int gdriver = 1, gmode=4; initgraph(&gdriver, &gmode, "d:\\tc\\bgi"); For example, to select the best driver and mode possible on a computer: int gdriver = DETECT, gmode; initgraph(&gdriver, &gmode, "d:\\tc\\bgi"); 3. Use graphics function to draw concentric circles? Ans. #include<conio.h> #include<graphics.h> # include<stdio.h> main() { int gdriver = DETECT, gmode; /* initialize graphics mode */ initgraph(&gdriver, &gmode, "d:\\tc\\bgi"); circle(100,100,90); circle(100,100,50); circle(100,100,30); getch(); restorecrtmode(); } Inform the students that the path d:\\tc\\bgi should be changed according to the machine settings. The code given here has been tested on Turbo C 3.0. 4. Develop a C program to draw a structure of a fish and give animation. Ans. #include<graphics.h> #include<stdio.h> #include<stdlib.h>
8 Coordinator Guide Graphics and Multimedia NIIT
#include<conio.h> #include<dos.h> void main() { int gdriver=DETECT,gmode; int i; initgraph(&gdriver,&gmode,"e:\\tc\\bgi"); int max_y=getmaxy()/2; i=0; setcolor(BLUE); while(!kbhit()) { line(0+i,max_y+30,0+i,max_y-30); /*triangle*/ line(0+i,max_y+30,30+i,max_y); line(0+i,max_y-30,30+i,max_y); ellipse(90+i,max_y,0,360,60,35); circle(120+i,max_y-5,5); i=i+3; if(i>=635) i=0; delay(100); cleardevice(); } getch(); closegraph(); } Inform the students that the path e:\\tc\\bgi should be changed according to the machine settings. The code given here has been tested on Turbo C 3.0.
NIIT
5. Develop a C program to draw a car shape and move the car using animation functions. Ans. #include<graphics.h> #include<conio.h> #include<dos.h> #include<stdlib.h> void car_wheel(int x,int y) { setcolor(WHITE); setfillstyle(SOLID_FILL,WHITE); circle(x,y,10); floodfill(x,y,WHITE); circle(x,y,25); } void car_body() { car_wheel(50,200); car_wheel(200,200); setcolor(RED); line(25,200,0,210); line(40,160,70,130); bar(105,110,125,130); line(0,160,40,160); line(70,130,170,130); line(170,130,200,160); line(175,200,75,200); line(200,160,260,160); line(260,160,260,200); line(260,200,225,200); arc(50,200,0,180,25); arc(200,200,0,180,25); setfillstyle(SOLID_FILL,RED); floodfill(150,170,RED); } void main() { int gdriver = DETECT,gmode; int i; void *buff; initgraph(&gdriver,&gmode,"e:\\tc\\bgi ");
NIIT
car_body(); buff=malloc(imagesize(0,100,270,230)); getimage(0,100,270,230,buff); putimage(0,100,buff,XOR_PUT); i=0; while(!kbhit()) { if(i>500) i=0; putimage(i,100,buff,OR_PUT); delay(75); putimage(i,100,buff,XOR_PUT); putimage(i+5,100,buff,OR_PUT); delay(75); putimage(i+5,100,buff,XOR_PUT); i =i+10 } closegraph(); restorecrtmode(); getch(); } Inform the students that the path d:\\tc\\bgi should be changed according to the machine settings. The code given here has been tested on Turbo C 3.0. 6. List the different graphics functions along with example. Ans. C supports various graphics functions, such as: line(int x1, int y1, int x2, int y2): This draws a line from position (x1, y1) to (x2, y2) Example: line(10,50,10,100); bar(int x1, int y1, int x2, int y2): This draws a filled rectangle with diagonal from (x1, y1) to (x2,y2) bar(10,25,100,75) circle(int x, int y, int r): This draws a circle with center at (x, y) and radius of r. Example: circle(50,50,10) arc(int x, int y, int start, int end, int r): This draws an arc of circle with the center at (x,y), radius r and start and end specified in degrees to mention the portion of the circle that forms the arc. Example: arc(100,100,0,90,20) draws the first quarter of the circle, arc with center (100,100) and radius 20.
NIIT
The malloc() function allocates memory for an object. The number of bytes of memory to be allocated is specified as its parameter. 8. Explain the use of getimage() and putimage() with examples? Ans. The getimage() function captures the image inside the rectangle whose diagonal is defined by (x1, y1), and (x2,y2),where x1, y1, x2, and y2 are the first four parameters of getimage(). The captured image is stored in an array, which is specified as the last parameter of getimage(). For example, to capture a rectangle whose diagonal is defined by (10, 50) and (50, 125), you can use the getimage() function as: int area = imagesize(10,50,50,125); unsigned char * buf = malloc(arear); getimage(10,50,50,125, buf); The putimage() function copies the image captured using getimage(), starting at location (x, y), where x and y are the first two parameters of this function. The image to be captured is specified as the third parameter. The fourth parameter of this function specifies how the image has to be copied and takes any of the following values: COPY_PUT or 0, which copies the image as it is XOR_PUT or 1, which performs an exclusive OR between the background pixels and the image pixels OR_PUT or 2, which performs an inclusive OR between the background pixels and the image pixels AND_PUT or 3, which performs an AND between the background pixels and the image pixels NOT_PUT or 4, which inverts the pixels of the image.
For example, animate a rectangle as it is you can use the COPY_PUT option in putimage: putimage(10,50, buf, COPY_PUT);
NIIT
Chapter Four Solutions to Chapter Four Questions 1. What is multimedia? Ans. Multimedia can be defined as presentation of information with integration of multiple media elements that can be used on and manipulated by computer. This media includes graphic software, video, audio, animation software, and computer hardware such as CD players, scanners and cameras. 2. What are the main components of Multimedia? Ans. The components of Multimedia are as follows:
3. With illustration briefly narrate the origin and development of multimedia technology? Ans. Multimedia is an effective medium to express information in a more attractive way. It makes use of text, pictures, audio, animation, and video. It was started more then 25 years ago. However, it only became popular with the advent of desktop computers. Audio was the first multimedia data incorporated into desktop computing, with the introduction of soundboards built around the tone-synthesis chips. In addition, video could also be captured, displayed and stored on a computer disk with the help of digital overlay and capture boards installed on any ordinary computer. However, the use of audio and video on desktop computers was limited due to their large size and high computing power requirements. These limitations were overcome through the introduction of compression/decompression engines for reducing the sizes of these files. As the demand increased for multi standard compression on the same system, several manufacturers introduced a new generation of compression chips that supported software programming. These chips contained hardware engines for operations requiring high computing power and also integrated processors that can be programmed to control data flow within the chip. Such technologies made audio and video boards capable of transferring data to computer systems efficiently, in some cases, in real time. The advent of RISC technology, parallel processing architecture, high speed hard disk, optical disk drives and a variety of interfacing devices made it possible to design computer systems that have multimedia features as standards. The latest breakthrough in the field of multimedia was the advent of the Internet and other highspeed networking technologies. These have presented new opportunities such as video conferencing, medical imaging, and scientific visualization.
NIIT
4. Give different applications for multimedia? Ans. Multimedia finds application in the field of entrainment, marketing, broadcasting, advertising, publication, telecommunications, training, collaborative engineering, and design manufacturing process because of its user-friendly operation. 5. What are sound cards? Ans. Sound card is the hardware for sound input and output. It is used with speakers, headphones, and microphones to record and play sound. Some sound cards also include MIDI, .Wav, and MP3. 6. How do graphics help in digital imaging? Ans. In digital imaging, film less camera may capture an image electronically, or an image may be traditionally created and scanned, or it may be created directly on the computer using graphics packages. The last option is where graphics help digital imaging. Direct graphics can be created on a computer in sophisticated, feature-rich packages such as Photoshop. These graphics editing packages allow creation of realistic digital images for use in multimedia applications. In addition, graphics packages also help to edit digital images, which have been scanned or captured in digital cameras. 7. What are the different choices for digital imaging? Ans. There are three different choices for digital imaging: A film less camera may capture an image electronically The image may be created within the computer using various paints and illustration programs The image may be created traditionally and than scanned into digital form
8. What are the different kinds of film less cameras available in the market? Ans. There are five different types of film less cameras suitable for digital imaging available in the market:
Video floppy disk Cameras Digital Cameras PCMCIA Cameras Filmless Camera backs Still Video Cameras
9. Explain how an artist can make use of multimedia software for his work. Ans.
NIIT
An artist can create illustrations using illustration software such as Adobe Illustrator. He can also apply special effects to existing and new images through filters such as those in Photoshop and Illustrator. In addition, he can scan hand-drawn illustrations and apply effects to or edit them. He can also create animation and add sound to his artwork using such software. 10. Explain how moving images are recorded on the hard disk. Ans. Moving images can be captured or copied on the hard disk with the help of a capture board. Digital cameras RF or audio and video ports are connected to the corresponding RF of Audio video ports available in the capture board. With the help of any Video studio software live images can be captured and stored on the hard disk. 11. Explain how sound helps in multimedia. What are the major types of sound files? Ans. Sound in multimedia can include speech, special effect sounds, and music. Sound is an essential component of a multimedia production, such as video or animation, and presentations. It helps to make a multimedia application, entertaining, easy to understand, and more presentable. For example, a presentation used for computer-based training can be more effective for students, if the text is also read out as it is displayed. The major types of sound file formats include Wave files and MIDI files. 12. What is sampling? Ans. The process of transfer of information from analog to digital is called sampling. 13. What is animation? Explain different types of animation techniques. Ans. Animation is the process in which each frame of a film or movie is produced individually and viewed in rapid succession to give an illusion of continuous movement. On PCs the two main types of animation techniques are as follows:
Object animation: Is the moment of unchanged text and object around the screen Cell animation/Frame animation: Is made of different frames on screen where they are rapidly displayed to simulate motion.
14. Explain the meaning of the following terms: Morphing, Rendering, Wrapping. Ans. Morphing: It is the process of transformation of one image to another by the transformation and distortion of corresponding points in both the images. The best example will be Kawasaki advertisement where the motorbike changes into a cheetah. Rendering: The process of converting your designed objects with texturing and animation into an image or a series of images is called rendering. Wrapping: It is the process where certain parts of the image could be marked for a change and made to change to different one for example legs of cheetah to be morphed with the wheels and head with head lights. Head can alone be marked and wrapped.
NIIT
15. What is the meaning of file format? Ans. The method by which software organizes the data in the saved file is called the file format. The file name extension or suffixes indicate the format or usage of the file. Several different types of file formats are used by various kinds of software. For example: the GIF file format used for Web page images is a standard format that can be opened by any program that supports that standard format. 16. Why do we use a scanner? Name the different types of scanners? Ans. Scanner is a peripheral device, which captures real object or image and saves it in a digital file as a graphic. Different types of scanner are as follows:
17. What are the components of a multimedia system? Ans. The components of a multimedia system are as follows:
Monitor CPU Mouse Keyboard Microphone CD drive and disc Speaker Digital camera Joystick Scanner Printer Web camera
18. Explain the significance of file extensions and file formats. Ans. File formats organize and store data in a specific format. The quality and characteristics of the format decide the quality and usage of the data stored in the file, and the applications with which the file will be compatible. For example, a graphic can be saved as a bitmap file or a GIF file. In the first case, the quality of the graphic is good because bitmap format does not compress data, whereas GIF does. However, the size of the file in the first case will be much more than the size of the file in the second case. Therefore, bitmap graphics cannot be used on web pages because they take a lot of time to load, whereas GIF graphics can be used. File extensions help a user as well as an application to identify the file format. For example, you can identify a graphic file by its extension such as .gif or .jpg. Similarly when you double
NIIT
click on a .gif file, Windows would read the extension and select the appropriate program for opening the file. Fill in the Blanks
1. 2. 3. 4. 5.
Multimedia constitutes an integration of multiple media such as text, graphics, audio, video, and animation elements. JPEG uses lossy compression techniques. Wave or .wav files are Microsoft standard file format for storing waveform audio data. The amount of data that can be transmitted from one computer to another in a given time frame is called bit rate. The process of removal of extraneous noise that inevitable creeps into a recording is called filtering.
NIIT
Solutions to Chapter Five Questions 1. Fill in the blanks: a. Computer Graphics can be classified into _____________ and _______________. Ans. Bitmap Images b. A Photoshop file can contain vector & raster data. Ans. True c. __________ is defined as the number of pixel along the height & width of bitmap. Ans. Resolution d. _____________ Method is used to assign color values to any new pixel, at the time of resampling. Ans. Interpolation e. Vectors graphics are made of ____ and ______ defined by mathematical objects, which are called vectors. Ans. Line Curves 2. How many colors are there in RGB Color mode? Ans. RGB images use three colors, Red, Green, and Blue. These colors are known as primary colors.
3. What is gamut in Photoshop? Ans. The series of colors that a color system can demonstrate or print is called gamut in Photoshop. A color that can be displayed in RGB may be out of gamut, and therefore unprintable, for your CMYK setting. 4. What is a layer?
NIIT
Ans. Layers can be visualized as transparent sheets placed over one another in an image. Creating a layered image refers to putting different objects on different levels in a sequence. . You can create empty layers and add content to them, or you can create new layers from existing content. When you create a new layer, it appears either above the selected layer or within the selected layer set in the Layers palette. Layer sets help you organize and manage layers. You can use layer sets to easily move layers as a group, to apply attributes and masks to groups of layers, and to reduce clutter in the Layers palette. You cannot create a new layer set within an existing layer set. 5. Name the different selections tools. Ans. The selection tools in Photoshop include the Lasso tool, Pen tools, Marquee Tool, and Path selection tool. 6. What are editing Tools? Ans. Editing tools are used to fine-tune or modify graphic elements. Photoshop delivers highpowered image editing, photo retouching, and composition tools. It also supports features, such as Making Color Adjustments, Auto Color Command, Adjustment Layers and Fill Layers, and Masking Layers to help you get professional-quality results. 7. Give the steps to use rubber stamp tool. Ans. To use the rubber stamp tool (Clone tool), perform the following steps: 1. Open the image that you want to clone. 2. Select rubber stamp tool. 3. Select an appropriate brush size and style from the Brush drop down in the options bar at the top. Also set values for other options such as blending mode, opacity, and flow. Determine how you want to align the sampled pixels. If you select Aligned, you can release the mouse button without losing the current sampling point. As a result, the sampled pixels are applied continuously, no matter how many times you stop and resume painting. If you deselect Aligned, the sampled pixels are applied from the initial sampling point each time you stop and resume painting. Select Use All Layers to sample data from all visible layers; deselect Use All Layers to sample only from the active layer. 4. Press Alt and click the image that you want to clone, to select the source point for cloning. 5. Use the brush to clone the image by dragging the mouse on another area. The image will be cloned in that area. 8. What is File Format? Name the different image file formats? Ans. The method by which the software organizes the data in the saved file is called the file format. The file name extension or suffixes indicate the format or usage of a file and a brief description of that format. Several different types of file format are used by various kind of software to save files. For example, the GIF file format used for Web page images are standard formats that can be opened by any program that supports it.
NIIT Coordinator Guide Graphics and Multimedia 19
Tagged-Image File Format (TIFF) Graphics Interchange Format (GIF) Joint Photographic Experts Group (JEPG) Encapsulated PostScript (EPS) Portable Document Format (PDF) Portable Network Graphics (PNG) TGA- Targa
9. Give the steps to use the image printing utility of Photoshop? Ans. In Photoshop, you can print a complete image, selected area of an image, or even one or more layers. To print a complete image, select File --> Print from the main menu (or press Ctrl + P). The Print dialog box opens up as shown in the following figure:
Ensure that the All radio button is selected. You can also set the print resolution by selecting it from the Print Quality drop-down. After making the desired print settings click OK to print. To print a selected area, make a selection in the image using the Rectangular Marquee tool and select File >Print. Select the Selection option button in the Print dialog box and click OK. Note that by default, Photoshop prints all visible layers and channels. If you want to print just certain layers or channels, make them the only ones that are visible and then print. You can also choose to print the filename, along with crop marks, registration marks and a caption along with the image. To set such options, select File >Page Setup in Photoshop 6. The Page Setup dialog box opens as shown in the following figure:
NIIT
You can select the checkboxes if you want to include the corresponding options in the printed image:
Caption: Selecting this checkbox will print a caption with the image. This caption can be set in the File Info dialog box. To open the File Info dialog box select File > File Info, and choose Caption from the Section drop-down list. Type a caption in the Caption text area and click OK. Calibration Bars: Select this checkbox to print the calibration and color bars for your image. A calibration bar is a row of 11 gray squares of different values. A color bar is a row of 11 colors. These bars can be helpful when trying to calibrate to a specific printer. This option is available only for a PostScript printer. Registration Marks: Select this checkbox to print a registration mark such as bull's eyes around the image. These marks can be helpful for aligning color separations. Corner Crop Marks: Select this checkbox to view horizontal and vertical lines around the corners of the image, defining where the image should be trimmed. Center Crop Marks: Select this checkbox to view the exact center of the image defined by two crossed lines. Labels: Select this checkbox to print the file name next to the image. You can also print the name of the appropriate color channel if you are using color separations. Negative: Select this checkbox to print an image that appears like a negative of the original image. With this option selected, the colors are reversed. Emulsion Down: Select this checkbox to print the image as a horizontal mirror image of the original image. Interpolation: Interpolation refers to a printer's ability to resample an image as they print it to improve its resolution. This option is useful in case of low-resolution images.
The buttons on the left side also present some useful options such as printing a border around the image and printing a background with the image.
NIIT
NIIT