wie kann ich ein farbiges Image in ein graues umwandeln?
Geht das in etwa so???
Code: Alles auswählen
if (theScaledImage -> numColors ()) {
for(uint i = 0; i < 256; ++i)
theScaledImage -> setColor(i, qRgb(i,i,i));
}converts a color image to a gray scale image
Conversion is done using the following formula:
out_color = red * .30 + green * .59 + blue * .11;
Danke,
Lg Devil's Daughter