Hi All,

I am working on automatic cropping for picts. Here automatic means the
pict will be cropped (or extended) to include what will be inked when the
pict is drawn.

The function crop/inked seems to work fine (see attached file), but the
functions in draw/unsage/cairo uses the following for outputs:

(define-fun-syntax _ptr/immobile
  (syntax-id-rules (_ptr/immobile o)
    [(_ptr/immobile o t) (type: _pointer
                                pre:  (malloc t 'atomic-interior)
                                post: (x => (ptr-ref x t)))]))

Since I need both input and output I have used

(_ptr io _double)

but maybe I need to use a version of  _ptr/immobile that also handles io
arguments?

If so how can I change the definition of _ptr/immobile.

See attached file for `crop/inked`.

/Jens Axel

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CABefVgwQynBRMbthR4%3DsQQ7OUwOV9mjgpcGazqWtkeLX-di1ow%40mail.gmail.com.

Attachment: crop-and-crop-inked.rkt
Description: Binary data

Reply via email to