2016-04-15 43 views

回答

1

您需要参考QImage image;变量来读取该涂鸦示例的像素数据。因此,如果您有像素坐标[i][j],则使用pixel()方法:

QRgb rgb = image.pixel(i, j);