Skip to content
Snippets Groups Projects
Commit f35eac2b authored by BATON Theau's avatar BATON Theau
Browse files

Résolution de bug sur Average

parent f93aa560
Branches
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ MainWindow::MainWindow(QWidget * parent)
this->_menubarManager.insert(this->_menuFile, QSharedPointer<ui::MenuLambda>(new ui::FilemenuLambda(this->_fileselectorManager, this->_viewManager)));
this->_menubarManager.insert(this->_menuAffichage, QSharedPointer<ui::MenuLambda>(new ui::DisplayMenuLambda(this->_viewManager)));
this->_menubarManager.insert(this->_menuImage, QSharedPointer<ui::MenuLambda>(new ui::imagemenulambda(this->_rescaleDialog, this->_resizeDialog, this->_viewManager)));
this->_menubarManager.insert(this->_menuImage, QSharedPointer<ui::MenuLambda>(new ui::ImageMenuLambda(this->_rescaleDialog, this->_resizeDialog, this->_viewManager)));
this->_menubarManager.insert(this->_menuSelection, QSharedPointer<ui::MenuLambda>(new ui::SelectionMenuLambda(this->_viewManager)));
this->_menubarManager.update();
......
......@@ -88,10 +88,6 @@
<file>ressource/image/oxygen/icons/16x16/archive-insert.png</file>
<file>ressource/image/oxygen/icons/16x16/archive-insert-directory.png</file>
<file>ressource/image/oxygen/icons/16x16/archive-remove.png</file>
<file>ressource/image/oxygen/icons/16x16/arrow-down.png</file>
<file>ressource/image/oxygen/icons/16x16/arrow-left.png</file>
<file>ressource/image/oxygen/icons/16x16/arrow-right.png</file>
<file>ressource/image/oxygen/icons/16x16/arrow-up.png</file>
<file>ressource/image/oxygen/icons/16x16/bookmark-new.png</file>
<file>ressource/image/oxygen/icons/16x16/bookmark-new-list.png</file>
<file>ressource/image/oxygen/icons/16x16/bookmarks-organize.png</file>
......
IHM_Retouche_Photo/ressource/image/oxygen/icons/16x16/arrow-down.png

525 B

IHM_Retouche_Photo/ressource/image/oxygen/icons/16x16/arrow-left.png

512 B

IHM_Retouche_Photo/ressource/image/oxygen/icons/16x16/arrow-right.png

527 B

IHM_Retouche_Photo/ressource/image/oxygen/icons/16x16/arrow-up.png

484 B

......@@ -21,6 +21,6 @@ namespace tool {
virtual void onKeyPress(ui::ImageArea &, ui::Selection &, const QPoint &, const QImage &, const QKeyEvent &, const ColorPickerWidget &);
virtual void onKeyReleased(ui::ImageArea &, ui::Selection &, const QPoint &, const QImage &, const QKeyEvent &, const ColorPickerWidget &);
void select(ui::Selection &, const QPoint &, const QImage &)
void select(ui::Selection &, const QPoint &, const QImage &);
};
}
......@@ -2,7 +2,7 @@
namespace ui {
void Average::apply(const QPoint & point, const QColor & color, const QImage * origin, QImage * image) {
QPoint newPoint(point.x() * image->width() / origin->height(), point.y() * image->height() / origin->height());
QPoint newPoint(point.x() * image->width() / origin->width(), point.y() * image->height() / origin->height());
image->setPixelColor(newPoint, color);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment