]> git.saurik.com Git - wxWidgets.git/commitdiff
Added rotate sample and comment about masks in wxImage::Rotate
authorGuillermo Rodriguez Garcia <guille@iies.es>
Mon, 6 Mar 2000 16:31:05 +0000 (16:31 +0000)
committerGuillermo Rodriguez Garcia <guille@iies.es>
Mon, 6 Mar 2000 16:31:05 +0000 (16:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/image.tex
docs/latex/wx/tsamples.tex

index f913b2b6bac2e53f6cdff0397b2a47b7255dccdb..a0dd0d74c2dabf63fa08525d5444e2ec7195f01d 100644 (file)
@@ -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.
 
index e0b64545bccbee096080ae756b692270abd341ae..dc27d24dfc715bf7f7a7bedc7db1622424506879 100644 (file)
@@ -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}