X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/819451b6c76bdcaf5fd8865479209859511aa986..b70b68a9ba62320a6a667f510b316219c7029d90:/docs/latex/wx/region.tex?ds=inline diff --git a/docs/latex/wx/region.tex b/docs/latex/wx/region.tex index c80bdeb535..09b6beb2ad 100644 --- a/docs/latex/wx/region.tex +++ b/docs/latex/wx/region.tex @@ -46,10 +46,12 @@ Constructs a region corresponding to the polygon made of {\it n} points in the provided array. {\it fillStyle} parameter may have values {\tt wxWINDING\_RULE} or {\tt wxODDEVEN\_RULE}. -{\bf NB:} This constructor is only implemented for Win32 and GTK+ wxWindows ports. +{\bf NB:} This constructor is only implemented for Win32 and GTK+ wxWidgets ports. -\func{}{wxRegion}{\param{const wxBitmap&}{ bmp}, - \param{const wxColour&}{ transColour = wxNullColour}, +\func{}{wxRegion}{\param{const wxBitmap\&}{ bmp}} + +\func{}{wxRegion}{\param{const wxBitmap\&}{ bmp}, + \param{const wxColour\&}{ transColour}, \param{int}{ tolerance = 0}} Constructs a region using the non-transparent pixels of a bitmap. See @@ -183,13 +185,19 @@ Finds the union of this region and another, rectangular region. Finds the union of this region and another region. -\func{bool}{Union}{\param{const wxBitmap&}{ bmp}, - \param{const wxColour&}{ transColour = wxNullColour}, +\func{bool}{Union}{\param{const wxBitmap\&}{ bmp}} + +Finds the union of this region and the the non-transparent pixels of a +bitmap. Bitmap's mask is used to determine transparency. If the bitmap doesn't +have a mask, solid rectangle of bitmap's dimensions is used. + +\func{bool}{Union}{\param{const wxBitmap\&}{ bmp}, + \param{const wxColour\&}{ transColour}, \param{int}{ tolerance = 0}} Finds the union of this region and the the non-transparent pixels of a -bitmap. If the bitmap has a mask then it will be used, otherwise the -colour to be treated as transparent may be specified, along with an +bitmap. Colour to be treated as transparent is specified in the +\arg{transColour} argument, along with an optional colour tolerance value. \wxheading{Return value}