Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Namespaces | Functions
imageloader.cpp File Reference
#include "image/imageloader.h"
#include <cassert>
#include <QImage>
#include <QPixmap>
#include <QString>
#include "geometrize/bitmap/bitmap.h"
#include "geometrize/core.h"
#include "preferences/globalpreferences.h"

Namespaces

 geometrize
 < Energy function passed to the image task worker thread.
 
 geometrize::image
 

Functions

Bitmap geometrize::image::createBitmap (const QImage &image)
 createBitmap Creates a bitmap data object from the given image. More...
 
geometrize::Bitmap geometrize::image::convertImageToBitmapWithDownscaling (const QImage &image)
 imageToBitmapWithDownscaling Creates a bitmap data object from the given image, downscaling in the process based on global preferences for image resizing More...
 
QImage geometrize::image::createImage (const Bitmap &data)
 createImage Creates an image from the bitmap data object. Assumes RGBA8888 format. More...
 
QPixmap geometrize::image::createPixmap (const Bitmap &data)
 createPixmap Creates a pixmap from the bitmap data object. Assumes RGBA8888 format. More...
 
QImage geometrize::image::loadImage (const std::string &filePath)
 loadImage Loads an image from the image at the file path. Converts to RGBA8888 format. More...
 
QImage geometrize::image::convertImageToRgba8888 (const QImage &image)
 convertImageToRgba8888 Returns a copy of the image in the RGBA8888 format. More...
 
QPixmap geometrize::image::loadPixmap (const std::string &filePath)
 loadPixmap Loads a pixmap from the image at the file path. Converts to RGBA8888 format. More...