This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Image::changeBrighten(int value) | |
{ | |
// DOPISAĆ FUNKCJĘ która będzie przechowywać oryginalne parametry obrazka!! | |
QRgb pixel; | |
//na początek obsługa obrazków w skali szarości i mono (mniej niż 8 bitów) | |
if(QImage::Format_RGB32 > img->format()) | |
{ | |
QVector<QRgb> colorTab = img->colorTable(); | |
for(int i = 0; i < colorTab.count(); i++) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <vector> | |
#include <string.h> | |
#include <stack> | |
#include <stdio.h> | |
#include <queue> | |
#include <time.h> | |
int *start; | |
int sx; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obraz = new QGridLayout(); | |
QImage *img = new QImage(); | |
img->load(fName); | |
if( img->load(fName)) qDebug()<<"Udalo sie zaladowac obrazek."; | |
//img->scaled(imgSize,Qt::IgnoreAspectRatio, Qt::FastTransformation); | |
//img->scaledToHeight(imgSize.height(), Qt::FastTransformation); | |
//img->scaledToWidth(imgSize.width(), Qt::FastTransformation); | |
QLabel *l = new QLabel; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obraz = new QGridLayout(); | |
QImage *img = new QImage(); | |
img->load(fName); | |
if( img->load(fName)) qDebug()<<"Udalo sie zaladowac obrazek."; | |
//img->scaled(imgSize,Qt::IgnoreAspectRatio, Qt::FastTransformation); | |
//img->scaledToHeight(imgSize.height(), Qt::FastTransformation); | |
//img->scaledToWidth(imgSize.width(), Qt::FastTransformation); | |
QLabel *l = new QLabel; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obraz = new QGridLayout(); | |
QImage *img = new QImage(); | |
img->load(fName); | |
if( img->load(fName)) qDebug()<<"Udalo sie zaladowac obrazek."; | |
//img->scaled(imgSize,Qt::IgnoreAspectRatio, Qt::FastTransformation); | |
//img->scaledToHeight(imgSize.height(), Qt::FastTransformation); | |
//img->scaledToWidth(imgSize.width(), Qt::FastTransformation); | |
QLabel *l = new QLabel; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xRot = 360 * asin((mRightFrontPos.y() - mRightZeroPos.y()) / (rightFrontX - mRightZeroPos).length()) * M_1_PI / 2; |
NewerOlder