Re: about the drawing mode

Anthony Thyssen <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Message-ID <20091201110630.2a558238@wraith>
On Mon, 30 Nov 2009 18:17:44 +0100
Wei-Dong Lian <[email protected]> wrote:

| Hi everyone,
| 
| I met a problem. I want to draw some objects, rectangle and circle and so
| on. I specified the back ground color, and also the stroke pen color and
| fill color.
| After drawing these objects, it seemed that there existed many types of
| color, which is not my origin purpose. I want in this image, there exists
| only two kinds of color, one is the back ground color, another is the filled
| color used to draw objects. Because the pixel intensity is more important
| for me. I am thinking about in imagemagick if there exists some functions
| like the CDC::SetRop2 in Microsoft GDI
| Any suggestion will be appreciated.
| I am attaching the code  below. Thanks for your attention,
| Regards,
| wediong
| 

You need to turn of anti-aliasing to only get the actual colors you draw.

See IM examples, Anti-Aliasing
  http://www.imagemagick.org/Usage/antialiasing/

  Anthony Thyssen ( System Programmer )    <[email protected]>
 --------------------------------------------------------------------------
         Bad Command or File Name. Good try, though!
         Bad Command or File Name. You have 2 wishes left.
         Bad command or file name! Go stand in the corner.
         Bad command. Bad, bad command! Sit! Stay! Staaay...
 --------------------------------------------------------------------------
     Anthony's Castle     http://hobbit.ict.griffith.edu.au/~anthony/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.