Export to PNG by code

Bug #1795054 reported by hilaire on 2018-09-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dr. Geo II
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

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

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
>

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

Other bug subscribers