Commands Used with the IMGCTRL, IMGOP and PICFILL Functions |
Syntax | |
Details | |
Example |
Syntax |
rc=IMGOP(task-id, 'DITHER_BW'); |
region-id=PICFILL(graphenv-id, type, ulr, ulc, lrr, lrc, source<, 'DITHER_BW'<, arguments>>); |
Details |
This command reduces an image to a black-and-white image. DITHER_BW is much more efficient for this task than the general purpose DITHER command.
Example |
Dither an image either to black and white or to a color map:
if (dither=1) then do; rc=imgop(task-id,'DITHER_BW'); rc=imgop(task-id,'PASTE'); end; if (dither=2) then do; rc=imgop(task-id,'GENERATE_CMAP', 'COLORRAMP',5,5,4); rc=imgop(task-id,'DITHER'); rc=imgop(task-id,'PASTE'); end;
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.