The export method modified with transparent background :
exportToBitmap | stream | stream := self askForBitmapToExport. stream ifNotNil: [ | form | form := (Form extent: self area extent depth: 32) fillWithColor: Color transparent. self area owner athensSurface displayOnMorphicCanvas: form getCanvas at: 0 @ 0. PNGReadWriter putForm: form copy onStream: stream. stream close].
The export method modified with transparent background :
exportToBitmap xport. cCanvas: form getCanvas at: 0 @ 0.
| stream |
stream := self askForBitmapToE
stream ifNotNil: [ | form |
form := (Form extent: self area extent depth: 32) fillWithColor: Color transparent.
self area owner athensSurface displayOnMorphi
PNGReadWriter putForm: form copy onStream: stream.
stream close].