1
0

Update of directories in 02 and 03.

This commit is contained in:
Jarosław Wieczorek 2021-03-20 17:53:58 +01:00
parent 5b18f63379
commit 775baf5051
10 changed files with 7 additions and 4 deletions

View File

@ -20,7 +20,8 @@ PNM* ConversionGrayscale::transform()
if (image->format() == QImage::Format_Mono)
{
for (int x=0; x<width; x++){
for (int x=0; x<width; x++)
{
for (int y=0; y<height; y++)
{
QColor color = QColor::fromRgb(image->pixel(x,y)); // Getting the pixel(x,y) value

View File

@ -45,8 +45,10 @@ PNM* Correction::transform()
}
// Set new pixels
for (int x = 0; x < width; x++) {
for (int y = 0; y < height; y++) {
for (int x = 0; x < width; x++)
{
for (int y = 0; y < height; y++)
{
QRgb pixel = image->pixel(x,y);
int r = qRed(pixel);
int g = qGreen(pixel);

View File

Before

Width:  |  Height:  |  Size: 260 KiB

After

Width:  |  Height:  |  Size: 260 KiB

View File

Before

Width:  |  Height:  |  Size: 549 KiB

After

Width:  |  Height:  |  Size: 549 KiB

View File

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 98 KiB

View File

Before

Width:  |  Height:  |  Size: 143 KiB

After

Width:  |  Height:  |  Size: 143 KiB

View File

@ -1,5 +1,5 @@
# Rozwiązania laboratoria 03
Cały kod znajduje się w katalogu głównym ,,app/cpp/mysimplegimp''
Zmienieone pliki projektu dla zadania 3-ego znajdują się w katalogu ,,03/do_sprawdzenia''
Zmienieone pliki projektu dla zadania 3-ego znajdują się w katalogu ,,03/do_sprawdzenia/cpp''