Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
imageloader.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 class QImage;
6 class QPixmap;
7 
8 namespace geometrize
9 {
10 class Bitmap;
11 }
12 
13 namespace geometrize
14 {
15 
16 namespace image
17 {
18 
24 Bitmap createBitmap(const QImage& image);
25 
31 geometrize::Bitmap convertImageToBitmapWithDownscaling(const QImage& image);
32 
38 QImage createImage(const Bitmap& data);
39 
45 QPixmap createPixmap(const Bitmap& data);
46 
52 QImage loadImage(const std::string& filePath);
53 
59 QImage convertImageToRgba8888(const QImage& image);
60 
66 QPixmap loadPixmap(const std::string& filePath);
67 
68 }
69 
70 }
geometrize::Bitmap convertImageToBitmapWithDownscaling(const QImage &image)
imageToBitmapWithDownscaling Creates a bitmap data object from the given image, downscaling in the pr...
Definition: imageloader.cpp:30
QImage createImage(const Bitmap &data)
createImage Creates an image from the bitmap data object. Assumes RGBA8888 format.
Definition: imageloader.cpp:46
QImage loadImage(const std::string &filePath)
loadImage Loads an image from the image at the file path. Converts to RGBA8888 format.
Definition: imageloader.cpp:62
QImage convertImageToRgba8888(const QImage &image)
convertImageToRgba8888 Returns a copy of the image in the RGBA8888 format.
Definition: imageloader.cpp:74
QPixmap loadPixmap(const std::string &filePath)
loadPixmap Loads a pixmap from the image at the file path. Converts to RGBA8888 format.
Definition: imageloader.cpp:79
QPixmap createPixmap(const Bitmap &data)
createPixmap Creates a pixmap from the bitmap data object. Assumes RGBA8888 format.
Definition: imageloader.cpp:57
Bitmap createBitmap(const QImage &image)
createBitmap Creates a bitmap data object from the given image.
Definition: imageloader.cpp:20