首页 > TAG信息列表 > img0

pygame学习笔记03: 图片旋转, 图片大小

代码 import sys import pygame pygame.init() screen = pygame.display.set_mode((600, 480), 0, 32) pygame.display.set_caption('my game') screen.fill('white') #根据名字获取颜色 # 创建image surface. img0 = pygame.image.load('star.png')

读取 rgb planner 二进制数据 resize 重采样

#include <fstream> #include <iostream> #include <opencv2/opencv.hpp> using namespace cv; using namespace std; int main(int argc, char **argv) {     const uint32_t cols = 640;     const uint32_t rows = 426;     ifstream fin0("0000

opencv rgb plannar 读取 转 rgb888保存

#include <fstream> #include <iostream> #include <opencv2/imgcodecs.hpp> #include <opencv2/opencv.hpp> using namespace cv; using namespace std; int main(int argc, char **argv) {     const uint32_t cols = 24;     const uint32_t row