X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a660d684eda27638bca0384b2058911a31c8e845..26de8b7d32fde0cf396d602dbbdb2e55f5caaeaf:/docs/latex/wx/memorydc.tex diff --git a/docs/latex/wx/memorydc.tex b/docs/latex/wx/memorydc.tex index 5237bb765a..39a8fbbbca 100644 --- a/docs/latex/wx/memorydc.tex +++ b/docs/latex/wx/memorydc.tex @@ -1,12 +1,20 @@ \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} \helpref{wxDC}{wxdc}\\ \helpref{wxObject}{wxobject} +\wxheading{Include files} + + + \wxheading{Remarks} A bitmap must be selected into the new memory DC before it may be used @@ -48,7 +56,7 @@ into the DC before drawing on it. Selects the given bitmap into the device context, to use as the memory bitmap. Selecting the bitmap into a memory DC allows you to draw into the DC (and therefore the bitmap) and also to use {\bf Blit} to copy -the bitmap to a canvas. For this purpose, you may find \helpref{wxDC::DrawIcon}{wxdcdrawicon}\rtfsp +the bitmap to a window. For this purpose, you may find \helpref{wxDC::DrawIcon}{wxdcdrawicon}\rtfsp easier to use instead. If the argument is wxNullBitmap (or some other uninitialised wxBitmap) the current bitmap is selected out of the device