Page 1 of 1

Image drawn mirrored - wxWidgets or UserError?

Posted: Thu Feb 12, 2009 9:12 am
by thile
Hi, I’m experimentation with making an application support Right to Left layout.

I used this call SetProcessDefaultLayout (LAYOUT_RTL);

To flip all windows made by my main process. More info is available here.
I noticed that my images are mirrored also. That was not indented.

I decided to test on a smaller and simpler application, so I used the Sample wxImage application.

Here is some footage.

Here is the application directory with the images it uses. Notice how the images look.

Next up the application. Whoo, the images look ok, all images are drawn as I hoped for.

Ok, in the application there is an option to show any image. I will now use this to show a jpeg and a gif file.

Here are the images. They are the same, just one in gif, and the other jpeg.

Now see how jpeg image is drawn. Looks ok.

Now here is the gif – why???

Mostly all my gifs go like this. Except the one gif that is used in the application itself. Look if I open up the horse.gif

code sample

Posted: Wed Mar 04, 2009 2:04 pm
by thile
I have zipped the sample project together with the two images.

I hope someone else will try, and see if the same behaviour occurs.

Posted: Wed Mar 04, 2009 2:16 pm
by thile
The picture IMG_6383_1.gif was created from the original jpeg file.

I did open the jpeg file, and did a "save as" and selected gif format.
And these pictures turn up mirrored in the wxapplication...

Now I open up the IMG_6383_1.gif again i my image editor. I again choose "save as" and save it as IMG_6383_2.gif

Guess what, this picture does not mirror.

Conversion from jpeg -> gif -> turns up mirrored.
Conversion from gif -> gif -> turns up ok.


Posted: Wed Mar 04, 2009 2:45 pm
by computerquip
>.> Even while reading, I only understand a percentage of what your saying. You didn't really seem to have a question in your first three posts or did I miss something?