Hi,
The wxWidgets docs give, amongst others, the following wxRegion
constructors:
wxRegion(const wxBitmap& bmp)
wxRegion(const wxBitmap& bmp, const wxColour& transColour, int tolerance
= 0)
So,
my $reg = Wx::Region->new($bmp);
my $reg = Wx::Region->new($bmp, $col, $tol);
are the wxPerl equivalents.
Whilst the methods in the wxWidgets docs don't always translate so
simply to a wxPerl equivalent, in the vast majority of cases they do.
For those that don't, in most of these cases there is a 'wxPerl' note in
the documentation detailing how to use the method.
HTH
Mark
On 26/04/2010 11:10, Justin zhang wrote:
Hi All,
Anyone know what's the wxPerl equalevant for wxPython's
wx.RegionFromBitmap()? This method creates a Wx::Region instance from a
bitmap. I followed the example code in the book *wxPython in action *which
says this is a global method. So I tried:
Wx::RegionFromBitmap()
However, I got error like:
Error while autoloading 'Wx::RegionFromBitmap' at ShapedWin1.pl line 63
Any idea?
Thank you very much!