Discussion:
draw metafile parts
Jean Bresson
2014-08-18 08:50:14 UTC
Permalink
Hello

For drawing image parts on screen CAPI provides some useful options with the :FROM-X, :FROM-Y, :FROM-WIDTH, :FROM-HEIGHT keywords of GP::DRAW-IMAGE.

I can't see how to do this with CAPI::DRAW-METAFILE
Is it possible ?

Thank you
Jean


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-***@lispworks.com
http://www.lispworks.com/support/lisp-hug.html
Jeffrey Massung
2014-08-18 19:27:06 UTC
Permalink
Could you use capi:draw-metafile-to-image, and then use gp:draw-image?

Jeff M.
Monday, August 18, 2014 3:50 AM
Hello
For drawing image parts on screen CAPI provides some useful options
with the :FROM-X, :FROM-Y, :FROM-WIDTH, :FROM-HEIGHT keywords of
GP::DRAW-IMAGE.
I can't see how to do this with CAPI::DRAW-METAFILE
Is it possible ?
Thank you
Jean
_______________________________________________
Lisp Hug - the mailing list for LispWorks users
http://www.lispworks.com/support/lisp-hug.html
Jean Bresson
2014-08-18 23:01:48 UTC
Permalink
I could do it, yes. That would make me create and store the image right after the metafile is done instead of storing the metafile. I guess this is at the cost of some additional memory (assuming that a metafile is smaller than an image)

Jean
Post by Jeffrey Massung
Could you use capi:draw-metafile-to-image, and then use gp:draw-image?
Jeff M.
Jean Bresson Monday, August 18, 2014 3:50 AM
Hello
For drawing image parts on screen CAPI provides some useful options with the :FROM-X, :FROM-Y, :FROM-WIDTH, :FROM-HEIGHT keywords of GP::DRAW-IMAGE.
I can't see how to do this with CAPI::DRAW-METAFILE
Is it possible ?
Thank you
Jean
_______________________________________________
Lisp Hug - the mailing list for LispWorks users
http://www.lispworks.com/support/lisp-hug.html
Martin Simmons
2014-08-19 17:15:41 UTC
Permalink
You could use gp:with-graphics-mask to clip it, but you would need to deal
with any transform.
--
Martin Simmons
LispWorks Ltd
http://www.lispworks.com/
Post by Jean Bresson
I could do it, yes. That would make me create and store the image right after the metafile is done instead of storing the metafile. I guess this is at the cost of some additional memory (assuming that a metafile is smaller than an image)
Jean
Post by Jeffrey Massung
Could you use capi:draw-metafile-to-image, and then use gp:draw-image?
Jeff M.
Jean Bresson Monday, August 18, 2014 3:50 AM
Hello
For drawing image parts on screen CAPI provides some useful options with the :FROM-X, :FROM-Y, :FROM-WIDTH, :FROM-HEIGHT keywords of GP::DRAW-IMAGE.
I can't see how to do this with CAPI::DRAW-METAFILE
Is it possible ?
Thank you
Jean
_______________________________________________
Lisp Hug - the mailing list for LispWorks users
http://www.lispworks.com/support/lisp-hug.html
_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-***@lispworks.com
http://www.lispworks.com/support/lisp-hug.html
Loading...