IUP

Check-in [2b332f9c40]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Corrected type of dpi parameter for mglplot-paint-to from int to double
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2b332f9c40a100e210df1632753246a9ebc60fe1
User & Date: murphy 2015-05-01 23:28:43.343
Context
2015-05-01
23:42
CHICKEN bindings for the IupMglPlot controls check-in: 50934cffb1 user: murphy tags: trunk, v1.3.0
23:28
Corrected type of dpi parameter for mglplot-paint-to from int to double check-in: 2b332f9c40 user: murphy tags: trunk
22:50
Corrected plot sample insertion index argument checks check-in: 3ebc96c632 user: murphy tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to api/mglplot.wiki.
55
56
57
58
59
60
61
62
63
64
65
66
67

<h2>Auxiliary Functions</h2>

<h3><a id="mglplot-x_y_z-_pixel-x_y"><code><nowiki>(mglplot-x/y/z->pixel-x/y [handle ihandle?] [x real?] [y real?] [z real? 0.0]) → (values integer? integer?)</nowiki></code></a></h3>

Transforms plot coordinates into pixel coordinates.

<h3><a id="mglplot-paint-to"><code><nowiki>(mglplot-paint-to [handle ihandle?] [format string?] [file string?] [width integer? 0] [height integer? 0] [dpi integer? 0]) → void?</nowiki></code></a></h3>

Paints the plot's contents into an image file. The format should be
either <code>"EPS"</code> or <code>"SVG"</code>. If the width, height
and resolution are not specified, the same values as for the on-screen
representation of the plot are used.







|





55
56
57
58
59
60
61
62
63
64
65
66
67

<h2>Auxiliary Functions</h2>

<h3><a id="mglplot-x_y_z-_pixel-x_y"><code><nowiki>(mglplot-x/y/z->pixel-x/y [handle ihandle?] [x real?] [y real?] [z real? 0.0]) → (values integer? integer?)</nowiki></code></a></h3>

Transforms plot coordinates into pixel coordinates.

<h3><a id="mglplot-paint-to"><code><nowiki>(mglplot-paint-to [handle ihandle?] [format string?] [file string?] [width integer? 0] [height integer? 0] [dpi real? 0.0]) → void?</nowiki></code></a></h3>

Paints the plot's contents into an image file. The format should be
either <code>"EPS"</code> or <code>"SVG"</code>. If the width, height
and resolution are not specified, the same values as for the on-screen
representation of the plot are used.
Changes to racket/mglplot.rkt.
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
            [pixel-x : (_ptr o _int)] [pixel-y : (_ptr o _int)]
         -> _void
         -> (values pixel-x pixel-y))))

(define mglplot-paint-to
  (get-ffi-obj
   "IupMglPlotPaintTo" libiup-mglplot
   (_fun (handle format file [width 0] [height 0] [dpi 0])
         :: [handle : _ihandle] [format : _string/utf-8]
            [width : _int] [height : _int] [dpi : _int]
            [file : _string]
         -> _void)))

;; Library setup

(letrec ([open
          (get-ffi-obj







|

|







102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
            [pixel-x : (_ptr o _int)] [pixel-y : (_ptr o _int)]
         -> _void
         -> (values pixel-x pixel-y))))

(define mglplot-paint-to
  (get-ffi-obj
   "IupMglPlotPaintTo" libiup-mglplot
   (_fun (handle format file [width 0] [height 0] [dpi 0.0])
         :: [handle : _ihandle] [format : _string/utf-8]
            [width : _int] [height : _int] [dpi : _double]
            [file : _string]
         -> _void)))

;; Library setup

(letrec ([open
          (get-ffi-obj