QImage image("myImage.png");
QImage image("myImage.png"); QRgb pixel = image.pixel(50, 50); // Get pixel at (50, 50) image.setPixel(50, 50, qRgb(255, 0, 0)); // Set pixel at (50, 50) to red
QImage image("myImage.png"); image.save("newImage.jpeg", "JPEG");This code loads an image and then saves it as a new JPEG file. Based on the code examples provided, the package library is the Qt library.