and finally loading this image as a texture into an opengl program.
while this worked really fine in linux, i am currently experiencing
the problem that the flop-function corrupts my texture.
this code works great, also with loading the texture:
Code: Select all
Magick::Image texImage("bricks.png"); texImage.strokeWidth(1); texImage.strokeColor("black"); texImage.draw( Magick::DrawableText(1, 25, "my text") ); //texImage.flop(); texImage.magick("RGB"); texImage.write(&textureBlob);
but when i flop() the image to have the text in the right orientation
the result looks like this:
what is wrong inside the flop-function? the same code works great in
linux and the resulting image can be written to disk correctly. only the
texture itself seems to be corrupted.
i am confused