A wx:memory-dc% object supports drawing into a bitmap. A wx:bitmap% object must be selected into a memory DC (using select-object) before the DC can be used for drawing.
Creates a new memory DC.
Creates a new memory DC with similar attributes (e.g., colour depth) to the given canvas DC.