From: Guillermo Rodriguez Garcia Date: Mon, 6 Mar 2000 16:31:05 +0000 (+0000) Subject: Added rotate sample and comment about masks in wxImage::Rotate X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b4e87ec32c0870a8dfa377199b2616d8eac9647a Added rotate sample and comment about masks in wxImage::Rotate git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/latex/wx/image.tex b/docs/latex/wx/image.tex index f913b2b6ba..a0dd0d74c2 100644 --- a/docs/latex/wx/image.tex +++ b/docs/latex/wx/image.tex @@ -511,7 +511,9 @@ Returns the (modified) image itself. \param{bool}{ interpolating = TRUE}, \param{wxPoint*}{ offsetAfterRotation = NULL}} Rotates the image about the given point, by {\it angle} radians. Passing TRUE -to {\it interpolating} results in better image quality, but is slower. +to {\it interpolating} results in better image quality, but is slower. If the +image has a mask, then the mask colour is used for the uncovered pixels in the +rotated image background. Else, black (rgb 0, 0, 0) will be used. Returns the rotated image, leaving this image intact. diff --git a/docs/latex/wx/tsamples.tex b/docs/latex/wx/tsamples.tex index e0b64545bc..dc27d24dfc 100644 --- a/docs/latex/wx/tsamples.tex +++ b/docs/latex/wx/tsamples.tex @@ -150,6 +150,14 @@ in particular using the \helpref{wxWindow::IsExposed}{wxwindowisexposed} method the aim to prevent unnecessary drawing in the window and thus reducing or removing flicker on screen. +\subsection{Rotate sample}\label{samplerotate} + +This is a simple example which demonstrates how to rotate an image with +the \helpref{wxImage::Rotate}{wximagerotate} method. The rotation can +be done without interpolation (left mouse button) which will be faster, +or with interpolation (right mouse button) which is slower but gives +better results. + \subsection{Font sample}\label{samplefont} The font sample demonstrates \helpref{wxFont}{wxfont}, @@ -316,12 +324,15 @@ Note that because both clients and connection objects in the server set up an event handler to catch {\bf wxSOCKET\_LOST} events, each one is immediately notified if the other end closes the connection. +There is also an URL test which demonstrates how to use the \helpref{wxURL}{wxurl} +class. + The sockets sample is work in progress. Coming soon: \begin{itemize}\itemsep=0pt \item More tests for basic socket functionality. +\item More tests for protocol classes (wxProtocol and its descendants). \item Tests for the recently added datagram socket classes. -\item Tests for protocol classes (wxProtocol and its descendants). \item New samples which actually do something useful (suggestions accepted). \end{itemize}