Wrote wxMask(bitmap,colour).
Some docs for it and wxBitmap::GetSubBitmap(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -98,9 +98,9 @@ If all possible wxWindows settings are used, the Windows platform supports BMP f
|
||||
XPM data, and XPM. Under wxGTK, the available formats are BMP file, XPM data, XPM file, and PNG file.
|
||||
Under wxMotif, the available formats are XBM data, XBM file, XPM data, XPM file.
|
||||
|
||||
In addition, wxBitmap can read all formats that \helpref{wxImage}{wximage} can
|
||||
(wxBITMAP\_TYPE\_JPEG, wxBITMAP\_TYPE\_PNG, wxBITMAP\_TYPE\_GIF, wxBITMAP\_TYPE\_PCX, wxBITMAP\_TYPE\_PNM).
|
||||
(Of course you must have wxImage handlers loaded.) }
|
||||
In addition, wxBitmap can read all formats that \helpref{wxImage}{wximage} can, which currently include
|
||||
wxBITMAP\_TYPE\_JPEG, wxBITMAP\_TYPE\_TIF, wxBITMAP\_TYPE\_PNG, wxBITMAP\_TYPE\_GIF, wxBITMAP\_TYPE\_PCX,
|
||||
and wxBITMAP\_TYPE\_PNM. Of course, you must have wxImage handlers loaded. }
|
||||
|
||||
\wxheading{Remarks}
|
||||
|
||||
@@ -312,6 +312,13 @@ Gets the width of the bitmap in pixels.
|
||||
|
||||
\helpref{wxBitmap::GetHeight}{wxbitmapgetheight}
|
||||
|
||||
\membersection{wxBitmap::GetSubBitmap}\label{wxbitmapgetsubbitmap}
|
||||
|
||||
\constfunc{wxBitmap}{GetSubBitmap}{\param{const wxRect&}{rect}}
|
||||
|
||||
Returns a sub bitmap of the current one as long as the rect belongs entirely to
|
||||
the bitmap. This function preserves bit depth and mask information.
|
||||
|
||||
\membersection{wxBitmap::InitStandardHandlers}
|
||||
|
||||
\func{static void}{InitStandardHandlers}{\void}
|
||||
|
@@ -37,8 +37,7 @@ Constructs a mask from a monochrome bitmap.
|
||||
|
||||
\func{}{wxMask}{\param{const wxBitmap\& }{bitmap}, \param{const wxColour\& }{colour}}
|
||||
|
||||
Constructs a mask from a bitmap and a colour that indicates the background. Not
|
||||
yet implemented for GTK.
|
||||
Constructs a mask from a bitmap and a colour that indicates the background.
|
||||
|
||||
\pythonnote{wxPython has an alternate wxMask constructor matching this
|
||||
form called \tt{wxMaskColour}.}
|
||||
@@ -70,8 +69,7 @@ Constructs a mask from a monochrome bitmap.
|
||||
|
||||
\func{bool}{Create}{\param{const wxBitmap\& }{bitmap}, \param{const wxColour\& }{colour}}
|
||||
|
||||
Constructs a mask from a bitmap and a colour that indicates the background. Not
|
||||
yet implemented for GTK.
|
||||
Constructs a mask from a bitmap and a colour that indicates the background.
|
||||
|
||||
\func{bool}{Create}{\param{const wxBitmap\& }{bitmap}, \param{int}{ index}}
|
||||
|
||||
|
Reference in New Issue
Block a user