Export bitmap with optional transparency

Bug #1697417 reported by hilaire on 2017-06-12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dr. Geo II

Bug Description

I should be possible to export bitmap with transparency at user request

Changed in drgeo:
importance: Undecided → Wishlist
milestone: none → wip
hilaire (hilaire-fernandes) wrote :

The export method modified with transparent background :

 | 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].

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers