Export to PNG by code

Bug #1795054 reported by hilaire
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dr. Geo
Fix Released
Wishlist
Hannes Hirzel

Bug Description

I want to export the canvas to an arbitrary PNG file by code.

http://forum.drgeo.eu/How-do-I-dismiss-a-DrGeoCanvas-object-tp4025347p4025378.html

Revision history for this message
hilaire (hilaire-fernandes) wrote :

With updated code this should do it:

| canvas |
canvas := DrGeoCanvas minimal.
canvas point: 0@0.
canvas axesOn.
canvas exportToBitmap: '/tmp/Toto.png'.
canvas delete

Changed in drgeo:
status: New → Fix Committed
Revision history for this message
Hannes Hirzel (hannes-hirzel) wrote : Re: [Bug 1795054] Re: Export to PNG by code

Excellent!

Thanks a lot for the good and terse solution which is easy to use!

--Hannes

On 9/28/18, hilaire <email address hidden> wrote:
> With updated code this should do it:
>
> | canvas |
> canvas := DrGeoCanvas minimal.
> canvas point: 0@0.
> canvas axesOn.
> canvas exportToBitmap: '/tmp/Toto.png'.
> canvas delete
>
> ** Changed in: drgeo
> Status: New => Fix Committed
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1795054
>
> Title:
> Export to PNG by code
>
> Status in Dr. Geo II:
> Fix Committed
>
> Bug description:
> I want to export the canvas to an arbitrary PNG file by code.
>
> http://forum.drgeo.eu/How-do-I-dismiss-a-DrGeoCanvas-object-
> tp4025347p4025378.html
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/drgeo/+bug/1795054/+subscriptions
>

Changed in drgeo:
milestone: wip → 19.03
Changed in drgeo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.