X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5a4a47df5ad0d52cac80946bdd0685d34749fc4..43c9c17dfbc351e9b754aa6380db12d292c2e115:/docs/latex/wx/image.tex?ds=sidebyside diff --git a/docs/latex/wx/image.tex b/docs/latex/wx/image.tex index 07e43de3ce..1366f12d04 100644 --- a/docs/latex/wx/image.tex +++ b/docs/latex/wx/image.tex @@ -259,6 +259,13 @@ Gets the green value of the mask colour. Gets the red value of the mask colour. +\membersection{wxImage::GetSubImage}\label{wximagegetsubimage} + +\constfunc{wxImage}{GetSubImage}{\param{const wxRect&}{rect}} + +Returns a sub image of the current one as long as the rect belongs entirely to +the image. + \membersection{wxImage::GetWidth}\label{wximagegetwidth} \constfunc{int}{GetWidth}{\void} @@ -310,8 +317,7 @@ of a given handler class in an application session.} \func{bool}{LoadFile}{\param{const wxString\&}{ name}, \param{const wxString\&}{ mimetype}} Loads an image from a file. If no handler type is provided, the library will -try to use wxBITMAP\_TYPE\_BMP or all known handlers previously installed -through a call to \helpref{wxImage::InitAllHandlers}{wximageinitallhandlers}. +try to use wxBITMAP\_TYPE\_BMP. \func{bool}{LoadFile}{\param{wxInputStream\&}{ stream}, \param{long}{ type}} @@ -459,8 +465,8 @@ Returns a scaled version of the image. This is also useful for scaling bitmaps in general as the only other way to scale bitmaps is to blit a wxMemoryDC into another wxMemoryDC. -NB: although Windows can do such scaling itself but in the GTK port, scaling -bitmaps is done using this routine internally. +It may be mentioned that the GTK post uses this function internally +to scale bitmaps when using mapping mode in wxDC. Example: @@ -485,13 +491,6 @@ Example: \helpref{Rescale}{wximagerescale} -\membersection{wxImage::GetSubImage}\label{wximagegetsubimage} - -\constfunc{wxImage}{GetSubImage}{\param{const wxRect&}{rect}} - -Returns a sub image of the current one as long as the rect belongs entirely to -the image. - \membersection{wxImage::SetData}\label{wximagesetdata} \func{void}{SetData}{\param{unsigned char*}{data}}