Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

ofSaveScreen() outputs file with wrong color

$
0
0

@cuinjune wrote:

Here’s my code:

void ofApp::draw(){
    ofSetColor(255, 0, 0);
    ofDrawRectangle(100, 100, 100, 100);
    ofSaveScreen("test.jpg");
    ofExit();
}

And here’s what the output image “test.jpg” looks like


As you can see, the color of the rectangle is not red but blue.

Is this a bug? I tested this on macOS 10.14.4.


Added: This issue also happens with ofSaveViewport().

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 636

Trending Articles