Geometrize  1.0
An application for geometrizing images into geometric primitives
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 
61 }
62 
63 }
imageloader.h
geometrize::image::loadImage
QImage loadImage(const std::string &filePath)
loadImage Loads an image from the image at the file path. Converts to RGBA8888 format.
Definition: imageloader.cpp:64
geometrize::image::convertImageToRgba8888
QImage convertImageToRgba8888(const QImage &image)
convertImageToRgba8888 Returns a copy of the image in the RGBA8888 format.
Definition: imageloader.cpp:82
geometrize::image::createImage
QImage createImage(const Bitmap &data)
createImage Creates an image from the bitmap data object. Assumes RGBA8888 format.
Definition: imageloader.cpp:48
geometrize::preferences::GlobalPreferences::getImageTaskResizeThreshold
std::pair< std::uint32_t, std::uint32_t > getImageTaskResizeThreshold() const
getImageTaskResizeThreshold Gets the maximum dimensions of an image that can be used in an image task...
Definition: globalpreferences.cpp:618
geometrize::image::createBitmap
Bitmap createBitmap(const QImage &image)
createBitmap Creates a bitmap data object from the given image.
Definition: imageloader.cpp:22
geometrize::image::createPixmap
QPixmap createPixmap(const Bitmap &data)
createPixmap Creates a pixmap from the bitmap data object. Assumes RGBA8888 format.
Definition: imageloader.cpp:59
geometrize::preferences::GlobalPreferences
The GlobalPreferences class models the preferences associated with the application as a whole....
Definition: globalpreferences.h:44
geometrize
Definition: commandlineparser.cpp:73
globalpreferences.h
geometrize::preferences::getGlobalPreferences
geometrize::preferences::GlobalPreferences & getGlobalPreferences()
getGlobalPreferences Shorthand function that gets a reference to the shared global preferences object...
Definition: globalpreferences.cpp:32
geometrize::image::convertImageToBitmapWithDownscaling
geometrize::Bitmap convertImageToBitmapWithDownscaling(const QImage &image)
imageToBitmapWithDownscaling Creates a bitmap data object from the given image, downscaling in the pr...
Definition: imageloader.cpp:32