Phoenix - SetRGB

Hi Robin,

In 2.8 this was:

wxImage::SetRGB

void SetRGB(int x, int y ,
unsigned char red, unsigned char green ,
unsigned char blue)

  In Phoenix I get the following exception and documentation states

that SetRGB is new as of 2.9.1?

Werner

TypeError: Image.SetRGB(): argument 1 has unexpected type ‘int’
File “c:\dev\dabo\dabo\ui\uiwx\dDockForm.py”, line 1072, in

test.Test().runTest(_dDockForm_test)
File “c:\dev\dabo\dabo\ui\uiwx\test.py”, line 76, in runTest
self.app.start()
File “c:\dev\dabo\dabo\dApp.py”, line 401, in start
self.uiApp.start()
File “c:\dev\dabo\dabo\ui\uiwx\uiApp.py”, line 463, in start
self.MainLoop()
File “c:\Python27\Lib\site-packages\wx-3.0.0-msw\wx\core.py”, line
1873, in MainLoop
rv = wx.PyApp.MainLoop(self)
File
“c:\Python27\Lib\site-packages\wx-3.0.0-msw\wx\lib\agw\aui\framemanager.py”,
line 9223, in OnMotion
self.OnMotion_DragFloatingPane(event)
File
“c:\Python27\Lib\site-packages\wx-3.0.0-msw\wx\lib\agw\aui\framemanager.py”,
line 9643, in OnMotion_DragFloatingPane
self.DrawHintRect(pane.window, clientPt, action_offset)
File
“c:\Python27\Lib\site-packages\wx-3.0.0-msw\wx\lib\agw\aui\framemanager.py”,
line 8339, in DrawHintRect
self.ShowHint(rect)
File
“c:\Python27\Lib\site-packages\wx-3.0.0-msw\wx\lib\agw\aui\framemanager.py”,
line 8108, in ShowHint
stipple = PaneCreateStippleBitmap()
File
“c:\Python27\Lib\site-packages\wx-3.0.0-msw\wx\lib\agw\aui\aui_utilities.py”,
line 268, in PaneCreateStippleBitmap
img.SetRGB(ii, jj, data[counter], data[counter+1],
data[counter+2])

Werner wrote:

Hi Robin,

In 2.8 this was:

      wxImage::SetRGB

*void* *SetRGB*(*int */x/, *int */y/, *unsigned char */red/, *unsigned
char */green/, *unsigned char */blue/)

In Phoenix I get the following exception and documentation states that
SetRGB is new as of 2.9.1?

I'll add the above overload so both forms will be available in Phoenix.

···

--
Robin Dunn
Software Craftsman

If dealing with Bitmaps(png, jpg, etc…)
If you are getting a libpng or other warning you can simply

Optimize the images run through.
FileOptimizer on SourceForge.
http://sourceforge.net/projects/nikkhokkho/files/FileOptimizer/

Strip everything but the image out.

They work fine after doing this.