\constfunc{wxBitmap}{ConvertToBitmap}{}
-Convert the region to a black and white bitmap with the black pixels
+Convert the region to a black and white bitmap with the white pixels
being inside the region.
\membersection{wxRegion::GetBox}\label{wxregiongetbox}
wxRegionContain Contains(const wxPoint& pt) const;
wxRegionContain Contains(const wxRect& rect) const;
- // Convert the region to a B&W bitmap with the black pixels being inside
+ // Convert the region to a B&W bitmap with the white pixels being inside
// the region.
wxBitmap ConvertToBitmap() const;
wxRegionContain Contains(const wxPoint& pt) const;
wxRegionContain Contains(const wxRect& rect) const;
- // Convert the region to a B&W bitmap with the black pixels being inside
+ // Convert the region to a B&W bitmap with the white pixels being inside
// the region.
wxBitmap ConvertToBitmap() const;
// Does the region contain the rectangle rect?
wxRegionContain Contains(const wxRect& rect) const;
- // Convert the region to a B&W bitmap with the black pixels being inside
+ // Convert the region to a B&W bitmap with the white pixels being inside
// the region.
wxBitmap ConvertToBitmap() const;
// Does the region contain the rectangle rect?
wxRegionContain Contains(const wxRect& rect) const;
- // Convert the region to a B&W bitmap with the black pixels being inside
+ // Convert the region to a B&W bitmap with the white pixels being inside
// the region.
wxBitmap ConvertToBitmap() const;
// Does the region contain the rectangle rect?
wxRegionContain Contains(const wxRect& rect) const;
- // Convert the region to a B&W bitmap with the black pixels being inside
+ // Convert the region to a B&W bitmap with the white pixels being inside
// the region.
wxBitmap ConvertToBitmap() const;
// Does the region contain the rectangle rect?
wxRegionContain Contains(const wxRect& rect) const;
- // Convert the region to a B&W bitmap with the black pixels being inside
+ // Convert the region to a B&W bitmap with the white pixels being inside
// the region.
wxBitmap ConvertToBitmap() const;
wxRegionContain Contains(const wxPoint& pt) const;
wxRegionContain Contains(const wxRect& rect) const;
- // Convert the region to a B&W bitmap with the black pixels being inside
+ // Convert the region to a B&W bitmap with the white pixels being inside
// the region.
wxBitmap ConvertToBitmap() const;
wxBitmap bmp(box.GetRight(), box.GetBottom());
wxMemoryDC dc;
dc.SelectObject(bmp);
- dc.SetBackground(*wxWHITE_BRUSH);
+ dc.SetBackground(*wxBLACK_BRUSH);
dc.Clear();
dc.SetClippingRegion(*this);
- dc.SetBackground(*wxBLACK_BRUSH);
+ dc.SetBackground(*wxWHITE_BRUSH);
dc.Clear();
dc.SelectObject(wxNullBitmap);
return bmp;
gdk_window_shape_combine_region(window, region.GetRegion(), 0, 0);
#else
wxBitmap bmp = region.ConvertToBitmap();
- bmp.SetMask(new wxMask(bmp, *wxWHITE));
+ bmp.SetMask(new wxMask(bmp, *wxBLACK));
GdkBitmap* mask = bmp.GetMask()->GetBitmap();
gdk_window_shape_combine_mask(window, mask, 0, 0);
#endif
gdk_window_shape_combine_region(window, region.GetRegion(), 0, 0);
#else
wxBitmap bmp = region.ConvertToBitmap();
- bmp.SetMask(new wxMask(bmp, *wxWHITE));
+ bmp.SetMask(new wxMask(bmp, *wxBLACK));
GdkBitmap* mask = bmp.GetMask()->GetBitmap();
gdk_window_shape_combine_mask(window, mask, 0, 0);
#endif