Update of directories in 02 and 03.
This commit is contained in:
parent
5b18f63379
commit
775baf5051
02/do_sprawdzenia/cpp
03
@ -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
|
@ -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);
|
Before ![]() (image error) Size: 260 KiB After ![]() (image error) Size: 260 KiB ![]() ![]() |
Before ![]() (image error) Size: 549 KiB After ![]() (image error) Size: 549 KiB ![]() ![]() |
Before ![]() (image error) Size: 98 KiB After ![]() (image error) Size: 98 KiB ![]() ![]() |
Before ![]() (image error) Size: 143 KiB After ![]() (image error) Size: 143 KiB ![]() ![]() |
@ -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''
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user