Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.
/ prog-proj Public archive

Programming project (L.EIC09). This project concerns the conversion of images from the SVG vectorial format to the PNG raster format.

Notifications You must be signed in to change notification settings

pedroafmonteiro/prog-proj

Repository files navigation

Programming project (L.EIC009)

Description

This project concerns the conversion of images from the SVG vectorial format to the PNG raster format.

Group elements

  • up202304912 Vasco Nuno Pinhal Ferreira Alves
  • up202305431 Narciso António Terrão Barroso
  • up202307242 Pedro André Freitas Monteiro

Accomplished tasks

SVG reading logic in readSVG.cpp

The image dimensions are obtained successfully with their respective width and height and every type of element can be dynamically allocated as a SVGElement* pointer.

Geometrical elements

Every geometrical element have their own class defined in SVGElements.hpp derived from their superior element or from the SVGElement class. All elements have their respective attributes and support for identifiers and transformations parameters and functions.

Element transformations

All types of transformations (translate, rotate and scale) are well implemented and binded for every type of element using virtual pure functions. The function that parses every transformation is in the file readSVG.cpp.

Groups

The groups have been implemented using a derived subclass from SVGElement and uses a recursive function in readSVG.cpp with all transformations working.

Element duplication

For elements that have an "id" attribute, they can be easily duplicated using and their respective transformations.

About

Programming project (L.EIC09). This project concerns the conversion of images from the SVG vectorial format to the PNG raster format.

Topics

Resources

Stars

Watchers

Forks