既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上物联网嵌入式知识点,真正体系化!
由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、电子书籍、讲解视频,并且后续会持续更新
/*平移变化函数(不改变图像大小) xx为平移变换的水平偏移量 yy为平移的垂直偏移量*/
QImage* MainWindow::MoveTransNormal(QImage* image , int xx, int yy)
{
QImage* newImage = new QImage(image->width(), image->height(), QImage::Format_ARGB32);
if (xx >= image->width() || yy >= image->height() || xx <= -image->width() || yy <= -image->height())
return image;
int y = 0;
unsigned char* copyPixel = NULL;
unsigned char* objPixel = NULL;
int copyWidth = image->width() - abs(xx);
for (int j = 0; j < image->height(); j++)
{
copyPixel = image->bits() + j * image->width() * 4;
if (xx < 0)
copyPixel += abs(xx) * 4;
y = j + yy;
if(y >=0 && y < image->height())
{
objPixel = newImage->bits() + y *image->width() * 4;
if (xx > 0)
objPixel += abs(xx) * 4;
memcpy(objPixel,copyPixel,copyWidth * 4);
}
}
return newImage;
}
/* 平移变换(改变图像大小) xx为平移变换的水平偏移量 yy为平移的垂直偏移量*/
QImage* MainWindow::MoveTransSize(QImage* image, int xx, int yy)
{
unsigned int outWidth = image->width() + abs(xx);
unsigned int outHeight = image->height() + abs(yy);
QImage* newImage = new QImage(outWidth, outHeight , QImage::Format_ARGB32);
int x = 0;
int y = 0;
unsigned char* copyPixel = NULL;
unsigned char* objPixel = NULL;
if (xx > 0)
x = xx;
if (yy > 0)
y = yy;
for (int j = 0; j < image->height(); j++)
{
copyPixel = image->bits() + j * image->width() * 4;
objPixel = newImage->bits() + y * outWidth * 4 + x * 4;
y ++;
memcpy(objPixel, copyPixel, image->width() * 4);
}
return newImage;
}
3.下载路径:
整个系列链接: https://blog.youkuaiyun.com/m0_59023219/category_12425183.html
收集整理了一份《2024年最新物联网嵌入式全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升的朋友。
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人
都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人**
都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!