X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/954b8ae60391d18b87a604e7919c87c0c6ae208b..ab9d0a8ca3d306898d92960ecfaefb8c1191b18a:/docs/latex/wx/memorydc.tex?ds=sidebyside diff --git a/docs/latex/wx/memorydc.tex b/docs/latex/wx/memorydc.tex index 9ae8c50927..0f4f2854c6 100644 --- a/docs/latex/wx/memorydc.tex +++ b/docs/latex/wx/memorydc.tex @@ -1,6 +1,10 @@ \section{\class{wxMemoryDC}}\label{wxmemorydc} -A memory device context provides a means to draw graphics onto a bitmap. +A memory device context provides a means to draw graphics onto a bitmap. When +drawing in to a mono-bitmap, using {\tt wxWHITE}, {\tt wxWHITE\_PEN} and +{\tt wxWHITE\_BRUSH} +will draw the background colour (i.e. 0) whereas all other colours will draw the +foreground colour (i.e. 1). \wxheading{Derived from} @@ -35,17 +39,17 @@ can be reselected into another memory DC. \latexignore{\rtfignore{\wxheading{Members}}} -\membersection{wxMemoryDC::wxMemoryDC} +\membersection{wxMemoryDC::wxMemoryDC}\label{wxmemorydcctor} \func{}{wxMemoryDC}{\void} Constructs a new memory device context. Use the {\it Ok} member to test whether the constructor was successful -in creating a useable device context. Don't forget to select a bitmap +in creating a usable device context. Don't forget to select a bitmap into the DC before drawing on it. -\membersection{wxMemoryDC::SelectObject} +\membersection{wxMemoryDC::SelectObject}\label{wxmemorydcselectobject} \func{}{SelectObject}{\param{const wxBitmap\& }{bitmap}}