connecting users of the CorelDRAW family of products

How to precisely replace a color?

rated by 0 users
Not Answered This post has 0 verified answers | 1 Reply | 1 Follower

Share  
Page 1 of 1 (2 items) | RSS

qwerty posted on Thu, May 3 2012 16:36

I have an image with a "rainbow" (a gradient of 7 colors).

How can I select each and every pixel of that image that contains at least a shade of red? That is, every color whose Red component (from its RGB code) is between 1 and 255.

All Replies

Top 10 Contributor
Melbourne
Male

Can you give a little more detail as what you are intending to do? If you are wanting to SELECT pixels containing red, you are creating a mask. Thinking of the mask in terms of greyscale...do you want all pixels containing red to appear as white on the mask (100% selected or opaque) or do you want the mask to reflect the percentage of red contained in the pixel? i.e. pure red will be pure white on the mask. A pixel containing no red at all will be black on the mask. A pixel which has a red value of 127 would appear as 50% grey on the mask, etc.

I am not sure what you are trying to do.

Best regaards,
Brian.

Brian Melbourne

Page 1 of 1 (2 items) | RSS
© Corel Corporation. The content herein is in the form of a personal web log ("Blog") or forum posting. As such, the views expressed in this site are those of the participants and do not necessarily reflect the views of Corel Corporation, or its affiliates and their respective officers, directors, employees and agents. Terms and Conditions / User Guidelines.