Converting vector graphics to bitmap images

In this recipe, vector graphics are to be converted into bitmaps. That is to say, we do need to convert them because there is a simple process that we can carry out. It is very easy, but we need to use a free and open source software. Let's get ready!

Getting ready

This transformation process is done with the help of Inkscape. Therefore, if you do not have Inkscape installed, you can download it from the following website: http://inkscape.org/download/?lang=eng. After downloading it, there are many features that you can learn about and how they work.

How to do it...

After installing Inkscape, search for vector graphics. There is a very interesting website where you can find many kinds of icons: http://www.openclipart.org/browse. Download the SVG clipart and Inkscape will automatically open with the clipart in the middle (if you have previously installed it in your computer). Therefore, follow these steps to start the transformation process:

  1. Open your default web browser and enter the website URL.
  2. On the top-right margin there appears a Search block and type the word 'triangle'.
  3. Click on Search. Many results showing triangles will appear. Click on one of them.
  4. The image will appear bigger. Click on Download SVG | Open, as shown in the following screenshot:
    How to do it...
  5. Inkscape will open automatically and the clipart will appear, as shown in the following screenshot:
    How to do it...
  6. Select File | Save. Save the file as triangle.svg, for example.
  7. Click on Save.

How it works...

We have just selected the clipart and saved it in Inkscape as .svg. Now, it is time to transform this .svg into a bitmap (.png file). Therefore, these are the steps to follow in order to carry out the transformation:

  1. Click on File | Export bitmap, as shown in the following screenshot:
    How it works...
  2. Export area block will appear showing many export options, as shown in the previous screenshot.
  3. Write 30 on the first dpi textbox, as shown in the previous screenshot (it says 90).
  4. Click on the Drawing button, as circled in the previous screenshot.
  5. Click on the Export button, as shown in the previous screenshot.
  6. Inkscape has transformed or exported the drawing in .PNG format.

    Note

    PNG is an open image format that has lossless compression, as we have already dealt with in Chapter 7, Working with Bitmap Images and Photographs. Moodle, Hot Potatoes, and Quandary 2 work very well with these types of files. We have worked with the PNG format due to the fact that the images are small in size.

See also

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.79.147