(sorry for last post as html and plaintext. wasn't thinking)
Anyway, another problem I just discovered:
given:
memdc = wxMemoryDC()
bmp = wxEmptyBitmap(10,10)
memdc.SelectObject(bmp)
if you do the following, you get different results in unix and windows:
memdc.SetPen(wxPen(wxColour(1,2,3),1,wxSOLID))
memdc.SetBrush(wxBrush(wxColour(1,2,3),wxSOLID))
memdc.DrawRectangle(0,0,10,10)
img = wxImageFromBitmap(bmp)
### Unix
>>> img.GetRed(0,0)
3
>>> img.GetGreen(0,0)
2
>>> img.GetBlue(0,0)
1
### windows
>>> img.GetRed(0,0)
1
>>> img.GetGreen(0,0)
2
>>> img.GetBlue(0,0)
3
This is killing my program which tries to decode the colour value into
an index into an array... any ideas as to what's causing it..?
Cheers,
Sam
------------------------------------------------------
Sam Pumphrey - Project SPIRIT, AT&T Research UK
Email:
[hidden email] - Tel: (01223) 343215
------------------------------------------------------
_______________________________________________
wxPython-users maillist -
[hidden email]
http://starship.python.net/mailman/listinfo/wxpython-users