mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-14 04:10:31 +02:00
Merge branch 'dev' into UnitTesting
This commit is contained in:
@@ -108,7 +108,7 @@ virtual QImage getDisplayable(const QSize& displaySize, int alpha) = 0;
|
||||
* @param alpha - The maximum alpha value, a pixel can have.
|
||||
* @return A QImage which is ready to be displayed.
|
||||
*/
|
||||
virtual QImage getDisplayable(int alpha=255) = 0;
|
||||
virtual QImage getDisplayable(int alpha = 255) = 0;
|
||||
|
||||
/*!
|
||||
* \brief A function that copys all that returns a [allocated] Image
|
||||
|
||||
@@ -44,7 +44,7 @@ virtual QImage getDisplayable(const QSize& displaySize,int alpha) override;
|
||||
* @param alpha - The maximum alpha value, a pixel can have.
|
||||
* @return A QImage which is ready to be displayed.
|
||||
*/
|
||||
virtual QImage getDisplayable(int alpha=255) override;
|
||||
virtual QImage getDisplayable(int alpha = 255) override;
|
||||
|
||||
/*!
|
||||
* \brief A function that copys all that returns a [allocated] Image
|
||||
|
||||
@@ -36,8 +36,8 @@ void IntelliShapedImage::calculateVisiblity(){
|
||||
|
||||
if(polygonData.size()<=2) {
|
||||
QColor clr;
|
||||
for(int y=0; y<imageData.height(); y++) {
|
||||
for(int x=0; x<imageData.width(); x++) {
|
||||
for(int y = 0; y<imageData.height(); y++) {
|
||||
for(int x = 0; x<imageData.width(); x++) {
|
||||
clr = imageData.pixel(x,y);
|
||||
clr.setAlpha(255);
|
||||
imageData.setPixelColor(x,y,clr);
|
||||
@@ -49,8 +49,8 @@ void IntelliShapedImage::calculateVisiblity(){
|
||||
return;
|
||||
}
|
||||
QColor clr;
|
||||
for(int y=0; y<imageData.height(); y++) {
|
||||
for(int x=0; x<imageData.width(); x++) {
|
||||
for(int y = 0; y<imageData.height(); y++) {
|
||||
for(int x = 0; x<imageData.width(); x++) {
|
||||
QPoint ptr(x,y);
|
||||
clr = imageData.pixelColor(x,y);
|
||||
bool isInPolygon = IntelliTriangulation::isInPolygon(triangles, ptr);
|
||||
|
||||
@@ -49,14 +49,14 @@ virtual ~IntelliShapedImage() override;
|
||||
* \param alpha - The maximum alpha value, a pixel can have.
|
||||
* \return A QImage which is ready to be displayed.
|
||||
*/
|
||||
virtual QImage getDisplayable(const QSize& displaySize, int alpha=255) override;
|
||||
virtual QImage getDisplayable(const QSize& displaySize, int alpha = 255) override;
|
||||
|
||||
/**
|
||||
* @brief A function returning the displayable ImageData in a requested transparence and it's standart size.
|
||||
* @param alpha - The maximum alpha value, a pixel can have.
|
||||
* @return A QImage which is ready to be displayed.
|
||||
*/
|
||||
virtual QImage getDisplayable(int alpha=255) override;
|
||||
virtual QImage getDisplayable(int alpha = 255) override;
|
||||
|
||||
/*!
|
||||
* \brief A function that copys all that returns a [allocated] Image
|
||||
|
||||
Reference in New Issue
Block a user