🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.lang.lisp
Article #555

save and load pixmap

#555
From: Hisao Kuroda
Date: Fri, 17 Apr 1992 04:33
29 lines
1571 bytes
CLX $@$r$D$+$C$?!"(Jpixmap $@$N(J $@%U%!%$%k$X$N=q$-9~$_!?;2>H$K$D$$$F$*J9$-$7$^$9!#(J
$@8=:_2<$N$h$&$J%W%m%0%i%`$r;H$C$F$$$^$9$,!"(J

(defvar *window*)
(defvar *gcontext*)

(defun save-pixmap-file (&optional (file "pixmap")
			 &key (x 0) (y 0) (width 200) (height 200))
  " *window* $@>e$N(J pixmap $@$r(J get $@$7!"(Jfile $@$K(J save $@$9$k(J "
  (XLIB:write-bitmap-file
   file
   (XLIB:get-image *window* :x x :y y :width width :height height)
   :sorceress))

(defun load-pixmap-file (&optional (file "pixmap") &key (x 0) (y 0))
  " file $@$+$i(J pixmap $@$rFI$_9~$_!"(J*window* $@$K(J put $@$9$k(J "
  (XLIB:PUT-IMAGE *window* *gcontext*
		  (XLIB:read-bitmap-file file)
		  :x x :y y))

$@$3$l$@$HHs>o$K;~4V$r?)$$$^$9!#(J
pixmap $@$N(J load/save $@$r(J CLX $@$+$i9bB.$K$d$kJ}K!$rCN$C$F$i$l$?$i!"(J
$@65$($F2<$5$$!#(J

-- 
	Mathmatical Systems Institute Inc.
	6F AM BLDG. 2-5-3 Shinjuku, Shinjuku-Ku, Tokyo Japan
	E-mail : kuroda@msi.co.jp (Kuroda,Hisao)
      # Everybody's got something to hide except me and my //GS. #
Technical Details
Message-ID: <502@msisun.msi.co.jp>
Path: arc1-ca.pugleaf.net!sparky!uunet!ccut!sh.wide!cc-keio!kogwy!msisun!kuroda

Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: 1421c0,db50d5a6c36663ad,start
X-Google-Attributes: gid1421c0,public
X-Google-ArrivalTime: 1992-04-16 21:33:48 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!ccut!sh.wide!cc-keio!kogwy!msisun!kuroda
From: kuroda@msisun.msi.co.jp (Hisao Kuroda)
Newsgroups: fj.lang.lisp
Subject: save and load pixmap
Message-ID: <502@msisun.msi.co.jp>
Date: 17 Apr 92 04:33:48 GMT
Distribution: fj
Organization: MSI.Inc. Shinjyuku-ku,Tokyo,JAPAN
Lines: 29