27 #include "../../../../maptools/Enums.h" 29 #include "ui_CompositionModeDialogForm.h" 33 m_ui(new
Ui::CompositionModeDialogForm)
38 m_ui->m_imgLabel->setPixmap(QIcon::fromTheme(
"layer-compose-hint").pixmap(112,48));
67 m_ui->m_helpPushButton->setNameSpace(
"dpi.inpe.br.plugins");
68 m_ui->m_helpPushButton->setPageReference(
"widgets/layer/compositionMode_dialog.html");
81 m_ui->m_clearRadioButton->setChecked(
true);
87 m_ui->m_srcRadioButton->setChecked(
true);
93 m_ui->m_dstRadioButton->setChecked(
true);
99 m_ui->m_srcOverRadioButton->setChecked(
true);
105 m_ui->m_dstOverRadioButton->setChecked(
true);
111 m_ui->m_srcInRadioButton->setChecked(
true);
117 m_ui->m_dstInRadioButton->setChecked(
true);
123 m_ui->m_srcOutRadioButton->setChecked(
true);
129 m_ui->m_dstOutRadioButton->setChecked(
true);
135 m_ui->m_srcAtTopRadioButton->setChecked(
true);
141 m_ui->m_dstAtTopRadioButton->setChecked(
true);
147 m_ui->m_xorRadioButton->setChecked(
true);
153 m_ui->m_plusRadioButton->setChecked(
true);
159 m_ui->m_multRadioButton->setChecked(
true);
165 m_ui->m_screenRadioButton->setChecked(
true);
171 m_ui->m_overlayRadioButton->setChecked(
true);
177 m_ui->m_darkenRadioButton->setChecked(
true);
183 m_ui->m_lightenRadioButton->setChecked(
true);
189 m_ui->m_colorDodgeRadioButton->setChecked(
true);
195 m_ui->m_colorBurnRadioButton->setChecked(
true);
201 m_ui->m_hardLightRadioButton->setChecked(
true);
207 m_ui->m_softLightRadioButton->setChecked(
true);
213 m_ui->m_diffRadioButton->setChecked(
true);
219 m_ui->m_exclusionRadioButton->setChecked(
true);
227 return m_ui->m_applyPushButton;
236 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-clear").pixmap(128,128));
238 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"The pixels in the destination are cleared (set to fully transparent) independent of the source."));
248 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-src").pixmap(128,128));
250 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"The output is the source pixel. (This means a basic copy operation and is identical to SourceOver when the source pixel is opaque)."));
260 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-dst").pixmap(128,128));
262 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"The output is the destination pixel. This means that the blending has no effect. This mode is the inverse of Source."));
272 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-src-over").pixmap(128,128));
274 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"This is the default mode. The alpha of the source is used to blend the pixel on top of the destination."));
284 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-dst-over").pixmap(128,128));
286 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"The alpha of the destination is used to blend it on top of the source pixels. This mode is the inverse of Source Over."));
296 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-src-in").pixmap(128,128));
298 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"The output is the source, where the alpha is reduced by that of the destination."));
308 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-dst-in").pixmap(128,128));
310 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"The output is the destination, where the alpha is reduced by that of the source. This mode is the inverse of Source In."));
320 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-src-out").pixmap(128,128));
322 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"The output is the source, where the alpha is reduced by the inverse of destination."));
332 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-dst-out").pixmap(128,128));
334 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"The output is the destination, where the alpha is reduced by the inverse of the source. This mode is the inverse of Source Out."));
344 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-src-atop").pixmap(128,128));
346 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"The source pixel is blended on top of the destination, with the alpha of the source pixel reduced by the alpha of the destination pixel."));
356 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-dst-atop").pixmap(128,128));
358 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"The destination pixel is blended on top of the source, with the alpha of the destination pixel is reduced by the alpha of the destination pixel. This mode is the inverse of Source A top."));
368 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-xor").pixmap(128,128));
370 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"The source, whose alpha is reduced with the inverse of the destination alpha, is merged with the destination, whose alpha is reduced by the inverse of the source alpha. Xor is not the same as the bitwise Xor."));
380 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-mix").pixmap(128,128));
382 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"Both the alpha and color of the source and destination pixels are added together."));
392 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-mix").pixmap(128,128));
394 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"The output is the source color multiplied by the destination. Multiplying a color with white leaves the color unchanged, while multiplying a color with black produces black."));
404 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-mix").pixmap(128,128));
406 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"The source and destination colors are inverted and then multiplied. Screening a color with white produces white, whereas screening a color with black leaves the color unchanged."));
416 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-mix").pixmap(128,128));
418 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"Multiplies or screens the colors depending on the destination color. The destination color is mixed with the source color to reflect the lightness or darkness of the destination."));
428 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-mix").pixmap(128,128));
430 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"The darker of the source and destination colors is selected."));
440 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-mix").pixmap(128,128));
442 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"The lighter of the source and destination colors is selected."));
452 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-mix").pixmap(128,128));
454 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"The destination color is brightened to reflect the source color. A black source color leaves the destination color unchanged."));
464 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-mix").pixmap(128,128));
466 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"The destination color is darkened to reflect the source color. A white source color leaves the destination color unchanged."));
476 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-mix").pixmap(128,128));
478 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"Multiplies or screens the colors depending on the source color. A light source color will lighten the destination color, whereas a dark source color will darken the destination color."));
488 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-mix").pixmap(128,128));
490 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"Darkens or lightens the colors depending on the source color. Similar to Hard Light."));
500 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-mix").pixmap(128,128));
502 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"Subtracts the darker of the colors from the lighter. Painting with white inverts the destination color, whereas painting with black leaves the destination color unchanged."));
512 m_ui->m_diagramLabel->setPixmap(QIcon::fromTheme(
"composition-mode-mix").pixmap(128,128));
514 m_ui->m_decriptionPlainTextEdit->setPlainText(tr(
"Similar to Difference, but with a lower contrast. Painting with white inverts the destination color, whereas painting with black leaves the destination color unchanged."));
CompositionMode
The composition mode used to render the canvas.
This file defines a class for a CompositionModeDialog.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr