jDSGI - Java2D DATA Step Graphics Interface
  Back - Next   [ 16 of 27 ]
image  
by Richard A. DeVenezia, Copyright 2004  HOME
/*
 * Richard A. DeVenezia
 * June 4, 2004
 *
 * jDSGI test 16
 */

data _null_;

  if symexist('goutpath') then goutpath=symget('goutpath'); else goutpath=pathname('WORK');
  if symexist ('gsftype') then gsftype=symget('gsftype'); else gsftype='png';

  gsf = cats(goutPath,"\","test16");

  width  = 500;
  height = 500;

  %canvas (_g, width, height, 0ffffffx)

  %setBackground (0ff0000x);
  %clearRect (10,10,100,100);

  %setBackgroundRGB (0,0,255);
  %clearRect (50,50,100,100);

  %setBackgroundRGB (0,255,0);
  %clearRect (100,100,100,100);

  %getBackground (bg);

  put bg= hex8.;

  %canvas_saveAs (gsf, gsftype, savedAs);

  %canvas_delete();

  if savedAs ne '' then rc = system ("start " || savedAs);
run;