I have a bitmap to which I wish to overlay and unoverlay several different bitmaps with calculated info. I have a couple of concerns.
I seems from my reading that only one Memory DC can be extant at once. Ideally, I’d like to prepare several bitmaps in Memory DC and blit the one chosen by the user.
I created a bitmap with wxEmptyBitmap and draw a few things into it. I’d like to blit it onto the current bitmap with the untouched parts transparent. I tried wxMask but couldn’t get it o work.
Any ideas?
Nigel
Nigel Moriarty wrote:
I seems from my reading that only one Memory DC can be extant at
once.
I've had more than one around without problems, but apparently it is not
recommended to keep a MemDC abound.
Ideally, I'd like to prepare several bitmaps in Memory DC and
blit the one chosen by the user.
You can keep the wxBitmap that is selected into it around, and re-create
the MemDC each time you need it.
I created a bitmap with wxEmptyBitmap and draw a few things into it.
I'd like to blit it onto the current bitmap with the untouched parts
transparent. I tried wxMask but couldn't get it o work.
I've had trouble with this as well. Post as small an example of your
not-working code here, and I'm sure someone will help you.
-Chris
···
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov