[Bug 1795054] [NEW] Export to PNG by code

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 1795054] [NEW] Export to PNG by code

Hliaire Fernandes
Administrator
Public bug reported:

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

** Affects: drgeo
     Importance: Wishlist
     Assignee: Hannes Hirzel (hannes-hirzel)
         Status: New


** Tags: smalltalk-sketch

--
You received this bug notification because you are a member of DrGeo
developers, which is subscribed to Dr. Geo II.
Matching subscriptions: Dr. Geo bug report
https://bugs.launchpad.net/bugs/1795054

Title:
  Export to PNG by code

Status in Dr. Geo II:
  New

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

Reply | Threaded
Open this post in threaded view
|

[Bug 1795054] Re: Export to PNG by code

Hliaire Fernandes
Administrator
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 member of DrGeo
developers, which is subscribed to Dr. Geo II.
Matching subscriptions: Dr. Geo bug report
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

HJH
Reply | Threaded
Open this post in threaded view
|

Re: [Bug 1795054] Re: Export to PNG by code

HJH
Excellent!

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

--Hannes

On 9/28/18, hilaire <[hidden email]> 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
>

--
You received this bug notification because you are a member of DrGeo
developers, which is subscribed to Dr. Geo II.
Matching subscriptions: Dr. Geo bug report
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