Hi all,
I’m having trouble displaying my .png image with transparency correctly.
It works when I drop it in the OF graphicsExample program. However, in my program the image renders with the transparent portions replaced with the current ofSetColor().
Also, in my code below, it renders ofSetColor(255) as blue. If I change it to (255,255,255) it renders as white.
This image is being drawn amongst other lines, shapes, and a Quicktime animation. I have tried removing these but it doesn’t seem to influence the .png rendering problem.
thanks!
Charlie
void testApp::drawImage() {
ofSetColor(255);
ofEnableAlphaBlending();
rectMask.draw(0, 113); // this is the .PNG image that doesn't draw correctly
ofSetColor(255);
jaggedLines.draw(0, 563);
ofDisableAlphaBlending();
}