Chapter Contents

Previous

Next
DITHER_BW

DITHER_BW



Dithers the selected image to a monochrome black and white image


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;


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.