AdvancedSplash, transparency and img2py

I started without the mask in the img2py command without success. I've
attached the original image to this message if you want to test it (I'm on
Vista sp1, python2.5.4, wxpy2.8.9.2). Image created with Inkscape

Marco

----

Messaggio originale----

Da: andrea.gavana@gmail.com
Data: 09/04/2009 10.46

A: "m.prosperi@libero.it"<m.prosperi@libero.it>, <wxpython-users@lists.

wxwidgets.org>

Ogg: Re: [wxpython-users] AdvancedSplash, transparency and

img2py

Hi Marco,

hi all, I'm using a png image for my agw splashcreen (a rectangle

with

transparent corners). If I create the wx.bitmap from file and pass it

to

advancedsplash constructor everything works fine:

bmp0 = wx.Bitmap

("rect1306.

png", wx.BITMAP_TYPE_PNG)

AdvancedSplash.AdvancedSplash.

__init__(self,

bitmap=bmp0,parent=None, id=-1,style = wx.NO_BORDER|wx.

FRAME_NO_TASKBAR|wx.

STAY_ON_TOP|wx.FRAME_SHAPED,extrastyle=AdvancedSplash.

AS_TIMEOUT |

AdvancedSplash.AS_CENTER_ON_SCREEN | AdvancedSplash.

AS_SHADOW_BITMAP,

timeout=5000, shadowcolour=wx.WHITE)

but if I embed

the png in a images module

and retrieve bmp0 from there (bmp0 = images.

getSplashscreenBitmap() ) the

corners of the rectangle aren't transparent. I

embed the png in images module

with this instruction for img2py.py:

" -

m ffffff -c -a -u -i -n Splashscreen

rect1306.png images.py"

Where am

I going wrong?

I am not sure without having the image to play with, but as a

first

suggestion, I would try to remove all the options you are passing to

img2py regarding the mask. If the PNG has tranparency in it, img2py
*should*

be able to handle it without specifying the mask option. If

it doesn't work,

you should probably send the image for us to play

with.

Andrea.

"

Imagination Is The Only Weapon In The War Against Reality."

http://xoomer.

alice.it/infinity77/

···

On Wed, Apr 8, 2009 at 10:07 PM, m.prosperi@libero.it wrote: