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
This commit is contained in:
		@@ -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.
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user