Fully filling a selection with certain color

Hello!
I'm trying to fill a selected region using Edit -> Fill...
However, pixels at the periphery of the region are not changed to the desired color exactly, but a lighter/darker one.
Is there a way to replace every single pixel inside a region with a certain color?
Thanks!

He/she means when making the selection.
Feather should be 0px, Anti-alias should be unchecked.
-Noel

Similar Messages

  • Grep: How to fill a table cell with certain color

    I have an excel sheet with 5000 rows that needs to be formatted in Indesign.
    1. Is there a way to get a certain color fill of the cell depending on text. Lets say if the text is "apple", the cell should fill with red (and text also color red to make it disappear).
    2. How do I make two different character styles to appear in the same cell (information is tab-separeted but sometimes I would like to have 2 "paragraphs" in one cell sometimes – with that I mean two tab-delimited cells from excel to appear in ONE cell in indesign).
    Thanks in advance
    Example of what I would like to accomplish:  http://tinypic.com/r/vo4och/6

    Yes but wouldn't that make the field contain a string?
    I tried something like that, and every field I edit becomes left-justified, and String (instead of int, float which is right-justified)
    Matthew

  • Problem Filling and Selecting with Paths.jsx

    I have copied Paths.jsx from the Adobe Photoshop CS5 Javascript Scripting Reference, p. 141.  It works OK.  It makes a path that is the outline of an ice cream cone and strokes it with the current foreground color.
    I then tried to fill the path and that does not work.  I have tried 3 methods using the following additional code and changing the appropriate false's to true:
    // Fill the path
    fillColor = new SolidColor
    fillColor.rgb.red = 255
    fillColor.rgb.green = 0
    fillColor.rgb.blue = 0
    try {
       if(false) {
             // This works and gives a gray fill that is neither the
                  // foreground nor background color
         // Only the ice cream part of the cone is selected and filled
                myPathItem.fillPath()
       } else if(false) {
         // With a color specified, it doesn't work
                  myPathItem.fillPath(fillColor)
           } else if(true) {
         // This makes a selection of the PathItem, selects it and fills it
         // Only the ice cream part of the cone is selected and filled
                  myPathItem.makeSelection(0, false, SelectionType.REPLACE)
                   selRef = app.activeDocument.selection;
                  selRef.fill(fillColor, ColorBlendMode.NORMAL)
    } catch(ex) {
            msg = "Error filling path:\n" + ex.message
            alert(msg, "Exception", true);
    They do as the comments say.  None of them does what I would expect.  For the second way, the error message is:
    General Photoshop error occurred.  This functionality may not be available in this version of Photoshop
    - Could not complete the command because of a program error.
    I do not understand why only the      ice cream part of the cone is filled or selected (the third array).  I can manually      make a selection from the Path in PS and it also only selects the      ice cream part.  All of the lines are stroked.  Only the top part is      filled or selected.
    Why does fillPath not work?
    I can supply the whole script if necessary.  I am an experienced programmer but new to Photoshop scripting.  Is this a bug or am I doing something wrong?
    Thanks for any help.

    This is the whole script:
    // Paths.jsx
    #target photoshop
    // Save the current preferences
    var startRulerUnits = app.preferences.rulerUnits
    var startTypeUnits = app.preferences.typeUnits
    var startDisplayDialogs = app.displayDialogs
    // Set Adobe Photoshop CS5 to use pixels and display no dialogs
    app.preferences.rulerUnits = Units.PIXELS
    app.preferences.typeUnits = TypeUnits.PIXELS
    app.displayDialogs = DialogModes.NO
    // First close all the open documents
    while (app.documents.length) {
    app.activeDocument.close()
    // Create a document to work with
    var docRef = app.documents.add(5000, 7000, 72, "Simple Line")
    // line 1--it’s a straight line so the coordinates for anchor, left, and right
    // for each point have the same coordinates
    var lineArray = new Array()
    lineArray[0] = new PathPointInfo
    lineArray[0].kind = PointKind.CORNERPOINT
    lineArray[0].anchor = Array(100, 100)
    lineArray[0].leftDirection = lineArray[0].anchor
    lineArray[0].rightDirection = lineArray[0].anchor
    lineArray[1] = new PathPointInfo
    lineArray[1].kind = PointKind.CORNERPOINT
    lineArray[1].anchor = Array(150, 200)
    lineArray[1].leftDirection = lineArray[1].anchor
    lineArray[1].rightDirection = lineArray[1].anchor
    var lineSubPathArray = new Array()
    lineSubPathArray[0] = new SubPathInfo()
    lineSubPathArray[0].operation = ShapeOperation.SHAPEXOR
    lineSubPathArray[0].closed = false
    lineSubPathArray[0].entireSubPath = lineArray
    // line 2
    var lineArray2 = new Array()
    lineArray2[0] = new PathPointInfo
    lineArray2[0].kind = PointKind.CORNERPOINT
    lineArray2[0].anchor = Array(150, 200)
    lineArray2[0].leftDirection = lineArray2[0].anchor
    lineArray2[0].rightDirection = lineArray2[0].anchor
    lineArray2[1] = new PathPointInfo
    lineArray2[1].kind = PointKind.CORNERPOINT
    lineArray2[1].anchor = Array(200, 100)
    lineArray2[1].leftDirection = lineArray2[1].anchor
    lineArray2[1].rightDirection = lineArray2[1].anchor
    lineSubPathArray[1] = new SubPathInfo()
    lineSubPathArray[1].operation = ShapeOperation.SHAPEXOR
    lineSubPathArray[1].closed = false
    lineSubPathArray[1].entireSubPath = lineArray2
    // Ice cream curve
    // It’s a curved line, so there are 3 points, not 2
    // coordinates for the middle point (lineArray3[1]) are different.
    // The left direction is positioned "above" the anchor on the screen.
    // The right direction is positioned "below" the anchor
    // You can change the coordinates for these points to see
    // how the curve works...
    var lineArray3 = new Array()
    lineArray3[0] = new PathPointInfo
    lineArray3[0].kind = PointKind.CORNERPOINT
    lineArray3[0].anchor = Array(200, 100)
    lineArray3[0].leftDirection = lineArray3[0].anchor
    lineArray3[0].rightDirection = lineArray3[0].anchor
    lineArray3[1] = new PathPointInfo
    lineArray3[1].kind = PointKind.CORNERPOINT
    lineArray3[1].anchor = Array(150, 50)
    lineArray3[1].leftDirection = Array(100, 50)
    lineArray3[1].rightDirection = Array(200, 50)
    lineArray3[2] = new PathPointInfo
    lineArray3[2].kind = PointKind.CORNERPOINT
    lineArray3[2].anchor = Array(100, 100)
    lineArray3[2].leftDirection = lineArray3[2].anchor
    lineArray3[2].rightDirection = lineArray3[2].anchor
    lineSubPathArray[2] = new SubPathInfo()
    lineSubPathArray[2].operation = ShapeOperation.SHAPEXOR
    lineSubPathArray[2].closed = false
    lineSubPathArray[2].entireSubPath = lineArray3
    // Create the path item
    var myPathItem = docRef.pathItems.add("A Line", lineSubPathArray)
    // Stroke it so we can see something
    myPathItem.strokePath(ToolType.BRUSH)
    // Fill the path
    fillColor = new SolidColor
    fillColor.rgb.red = 255
    fillColor.rgb.green = 0
    fillColor.rgb.blue = 0
    try {
        if(false) {
            // This works and gives a gray fill that is neither the
            // foreground nor background color
            // Only the ice cream part of the cone is selected and filled
            myPathItem.fillPath()
        } else if(false) {
            // With a color specified, it doesn't work
            myPathItem.fillPath(fillColor)
        } else if(true) {
            // This makes a selection of the PathItem, selects it and fills it
            // Only the ice cream part of the cone is selected and filled
            myPathItem.makeSelection(0, false, SelectionType.REPLACE)
            selRef = app.activeDocument.selection;
            selRef.fill(fillColor, ColorBlendMode.NORMAL)
    } catch(ex) {
        msg = "Error filling path:\n" + ex.message
        alert(msg, "Exception", true);
    // Reset the application preferences
    preferences.rulerUnits = startRulerUnits
    preferences.typeUnits = startTypeUnits
    displayDialogs = startDisplayDialogs

  • Table.setRowSelectionInterval(a,a)select with yellow color why

    Hi
    table.setRowSelectionInterval(a,a);
    Why duos this method selects around the cell
    With a yellow color not blue like when I mouse click
    Thanks

    maybe resetting the colour to another one and then revert back to original if it works...
    Hope this helps.
    Best wishes
    Shirley

  • How to fill JSlider bar with different color

    I got an problem actually i am in learning state.
    I used Look and feel for windows. UImanager changes the lookandfeel
    But in jslider filled color is blank. how can i change the color&jslider knob is perpendicular to jslider bar how can i fit the knob in jslider bar.pls give suggestions

    Try to use this in you paint method :
    public void paint(Graphics g)
    Graphics2D g2D = (Graphics2D) g;
    // Get the height & width
    int width = this.getWidth();
    int height = this.getHeight();
    // Create the gradient paint
    gradientPaint = new GradientPaint(0,0, Color.blue, width, height, Color.red);
    g2D.setPaint(gradientPaint);
    g2D.fillRect(0,0, width, height);

  • Fill with solid color problem

    Please, kindly  help to find out why Photoshop fills a selection with transparent color while opacity and fill of a layer  are set to 100% and blending modes are “normal”
    Thank  you!

    Olga,
    In that case I have no idea, sorry.
    Only thing I can think off is to reset the preferences. When Photoshop is acting up this will sometimes make Photoshop behave.
    But before you do this make sure you backup your actions, gradients, shapes, brushes etc or you will lose the ones you made yourself.

  • Using cs6, I've tried filling a selection that I've made using "select color range" but the new fill gets diffused and transparent in places

    Is there a way of turning this "color range selection" into a normal selection?

    Yes
    With Color Range there can be stray partially selected pixels all over the place. It best to first make the color range selection and with the selection active switch to the rectangle marquee tool and hold the Alt or option key down and clean up the stray pixel by subtracting large rectangle areas.  You will stall have partially select pixels in the area you want solid.  You can use a trick I use when I work on layers mask.   Layer Mask are grayscale channels.  When you paint with Black and White  with the brush blend mode set Overlay the white and black areas are protected.  Only the gray partially select area will change. So You can save your cleaned up Color Range selection as an Alpha Channel and paint with white to turn the partially select pixels in the Alpha channel to fully selected.
    To show how the overlay mode works I could just have saved the color selection as and Alpha channel. Switched to the Channels palette targeted the alpha and cleaned up the selection.  I chose to show that overlay blend will even work in RGB mode when you paint Black and White.
    After I cleaned up the stray pixels I added a an empty layer on top om the image and filled the selection with black then inverted the selection and filled with white to create a Black and white work layer.  Grabbed a black paint brush set overlay mode and repeatedly brushed over the image and drove the gray pixels to black.  View screen capture in a new browser tan ans scale it to actual pixels. This sits scale upload images poorly.

  • How to fill in a defined section with a color?

    I have just used the pencil tool to draw the rough outline of a tree and its stump in my background layer.  I want to fill in the tree with a solid green, and the stump with a solid brown.   The tree is separated from the stump by a drawn line.  How do I do this, please?  I have PSE 6.
    (I took a PS course a decade ago and used to know how to do this, but not anymore!)

    As an example I found this line drawing in Google images.
    Activate the Magic Wand tool and check the Contiguous box.
    Set the the Foreground color to green.
    Holding down Shift, click the individual areas of the tree to select them cumulatively.
    Fill this selection with the green (you can use the shortcut Alt-Backspace to fill with the Foreground color).
    Do the same for the trunk.
    This assume of course that all the segments are enclosed by an outline.

  • How to fill column value of a matrix with specific color when there is no value in that specific cell?

    Hi All,
    I need to create a 5/5  matrix in SSRS report. The data will be :
    Col_Side   Col_Header   Col_data
    1                  1                1
    1                  1                 1
    1                  2                1
    1                  5                1
    1                  5                1
    1                  5                1
    2                  3                1
    2                  5                1
    3                  1                2
    3                  1                2
    3                  1                2
    4                   2               1
    4                   4               1
    5                   1               1
    5                   1               1
    5                   5               1
    So, the matrix column will be Col_Header and matrix row will be Col_Side and count(Col_data) will be on the data.
    Finally, it will create a 5 by 5 matrix with Count(Col_data) as its data for each combinations. If there is no combination (for ex: in the above data we do not have no combination of (1,3) , (1,4) , (2,1) etc..) then the matrix will be filling that corresponding
    cell with zero.
    Here I need to fill the cells with some colors based on some criteria.
    I need to fill (5,3), (5,4), (5,5) combination with "Red" color.  Like this , I need to give different colors in each of the cells. Here, (5,5) combination will be having 1 in its cell.  (5,4) and (5,3) will be having zero in its corresponding
    cells. I 'm trying to fill all the 3 cells with "Red" color. But, I am able to fill only (5,5) with "Red" color. Since the other 2 cells (5,3) and (5,4), has zero in their cells, it will not fill the cells with "Red" color. 
    How can I fill those two cells (5,3) and (5,4) with red color?
    I know this is very vague. I have no option to give the picture here..
    Please suggest

    Hi Julie,
    According to your description, there is a 5/5 matrix with three fields: Col_Side, Col_Header, Col_data. You drag Col_Side field to Rows, Col_Header to Columns and Col_data to Data, then filling blank cells with zero using expression. Now you want to fill 
    (5,3), (5,4), (5,5) cells with red color using expression, but it has no effect on cells (5,3) and (5,4).
    According to my test, the expression has on effect on cells (5,3) and (5,4) since there is no corresponding data and the cells are blank. As a workaround, we can insert data for cells (5,3) and (5,4) in dataset, then use expression by following steps:
    In the dataset, insert two sets of data (5,3,0), (5,4,0).
    Right-click the cell of data, click Text Box Properties.
    Click Fill in left pane, click (fx) button, then type the expression like below, then click OK.
    =iif(Fields!Col_Side.Value=5 and Fields!Col_Header.Value >=3 ,"red","white" )
    The following screenshot is for your reference:
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • Photoshop in Adobe RGB 16 bit don't fill a layer with paint bucket and a color 35.40.35.100.

    I create a new file in RGB profile Adobe RGB 16bit
    take the paint bucket and fill the layer with a color created by selector with the following parameters 35.40.35.100 CMYK and RGB corresponds to 24.20.18 the result is a full level of color 76.73.63.9 but in RGB corresponds to 24.20.18 because the values in cmyk not match ??

    Could you please post screenshots (with the pertinent Panels visible) to illustrate the issue?
    Are you not aware that you cannot reliably define a CMYK color in RGB because the transformation is performed through the Profile Connection Space (Lab) and depends on the involved Color Spaces/ICC profiles (edited) and the Color Settings?

  • Paint Bucket not filling entire selection (CS4/5)

    Hello, I'm a professional cartoonist and have worked in Photoshop since the earliest versions.  Since upgrading to CS4 (and now CS5), I've been having trouble using the Paint Bucket Tool, so I'd appreciate any help here.
    Here's a basic example ...
    1) Imagine a single layer CMYK document.
    2) Draw a closed shape using the Pencil Tool (no antialiasing!) with a color of choice.
    3) Select the inside of this shape using the Magic Wand Tool (again, no antialiasing!).
    4) Fill the selection with the EXACT SAME COLOR using Paint Bucket tool.
    5) Deselect region.
    6) Now use menu options SELECT -> COLOR RANGE ... And click on the filled region (technically, that color should be selected by default since it's your current foreground color).
    7) Click OK
    8) Choose a new foreground color and then Paint Bucket the selected region, BUT make sure you click on the area you filled in Step 4 ... i.e., do not click on a pixel you drew using the Pencil Tool.
    In CS4 and now CS5, the Paint Bucket is not including the pencilled outline when I click fill.  That is, I'm left with the original pencil outline, and the filled region in a new color.
    HOWEVER ... If in Step 8, I'm lucky enough to click one of the original pencil marks, the entire color region fills as it always did in previous versions.
    This has grown increasingly annoying while working with my cartoons because I use the Pencil Tool to "close" gaps in my inked lines, and then the Paint Bucket to fill.  If I decide to change the color of a character's shirt, I'm left with tiny spots in the gap regions.
    Help would be much appreciated!!
    Thanks

    Thanks for your suggestions, Charles.
    Here's a better explanation as to what is happening with visual examples ...
    I ink my cartoons with traditional tools, and then scan a high-res copy into Photoshop.  The black ink is converted to a 2 color bitmap so that there is no anti-aliasing.  This file is then converted to CMYK for coloring.  The black line art becomes the bottom ("Background") layer, and I add a new layer on top for the flat colors.  The flat colors layer is set to "Multiply" so that I can close tiny gaps in my lines with color, without erasing the original black lines.
    Visually ...
    1) Bottom layer is black outline with no antialiasing ...
    2) Create new layer on top for flat colors and set to MULTIPLY.  Using pencil tool (and Wacom Tablet), close the gap with red ...
    3) Because layer is on multiply, you can see that the red in Step 2 is actually this shape ...
    4) Magic Wand to select the area INSIDE of the now closed circle.  Wand is set to "Sample All Layers" so that it selects only the area closed in by the black outline layer AND the red.  Paint bucket this area with the exact same red ...
    5)  Once again, here is what the flat color layer actually looks like since Multiply is on ...
    6) Magic wand the area outside of the circle and fill with a DIFFERENT color ...
    7) Now, suppose you didn't want the circle to be red.  I now select the red using Magic Wand (or Select -> Color Range menu) and click on the red.  An outline appears around the ENTIRE red shape (i.e., you would assume that all of the red has been selected since it is the EXACT same color ... verified using eyedropper tool) ... However, if you click to fill with Paint Bucket, here is the result ...
    8) For some reason, Photoshop is "remembering" the red originally drawn using the Pencil Tool in Step 2 as a separate region ... Even though all of the colors are on the exact same layer ...
    I hope this better explains what I'm experiencing here
    ANY IDEAS???

  • Photoshop opens dialog box when trying to fill a layer with transparent pixels locked

    This script should set the layer to lock transparent pixels, and then fill the layer with a color. It does that, except when it gets to the fill stage, it opens the fill dialog box, and you have to hit okay.
    If you omit the transparent pixel line, it runs as expected, no dialog box.
    Is there a way to suppress the box? Or am I doing something wrong that's causing the box to open?
    #target photoshop
    app.bringToFront();
    doc = app.activeDocument;
    doc.artLayers[0].isBackgroundLayer = false;
    doc.artLayers[0].transparentPixelsLocked = true;
    app.activeDocument.selection.fill(app.foregroundColor);

    Not sure why that happens.
    But I would recommend foregoing the locking and using the AM code for a Fill that honours the transparency.
    #target photoshop 
    app.bringToFront(); 
    doc = app.activeDocument; 
    doc.artLayers[0].isBackgroundLayer = false; 
    doc.activeLayer = doc.artLayers[0];
    // =======================================================
    var idFl = charIDToTypeID( "Fl  " );
        var desc18 = new ActionDescriptor();
        var idUsng = charIDToTypeID( "Usng" );
        var idFlCn = charIDToTypeID( "FlCn" );
        var idFrgC = charIDToTypeID( "FrgC" );
        desc18.putEnumerated( idUsng, idFlCn, idFrgC );
        var idOpct = charIDToTypeID( "Opct" );
        var idPrc = charIDToTypeID( "#Prc" );
        desc18.putUnitDouble( idOpct, idPrc, 100.000000 );
        var idMd = charIDToTypeID( "Md  " );
        var idBlnM = charIDToTypeID( "BlnM" );
        var idNrml = charIDToTypeID( "Nrml" );
        desc18.putEnumerated( idMd, idBlnM, idNrml );
        var idPrsT = charIDToTypeID( "PrsT" );
        desc18.putBoolean( idPrsT, true );
    executeAction( idFl, desc18, DialogModes.NO );

  • Special effect to make only certain colors "glow"

    Is there an effect that I can use that will allow me to select a certain color and then make it have a glowing type effect? Thanks

    The Color Corrector filters are fundamentally chromakeyrs. They create a color-specific, masked set of pixels that are processed with overlays and curve tweaks according to the settings of the CC filter. I've never done it myself but I've been told you can export the alpha mask form the CC independently.
    In the olden days in After Effects, we'd use various keyers to extract the alphas and then apply colorization and blurs or rays to the imported or nested movies.
    bogiesan

  • Problems with "no color" in the "Fill and Stroke"

    I am having problems with “no color” in the “Fill and Stroke” function of Flash CS4 Pro.
    I had been using CS4 for 10 days and everything worked fine. Then I tried experimenting with various color combinations (along with “no color”) for “Fill and Stroke” for a simple button. Suddenly CS4 locked up on me while I was working with the “color panel”. A second color panel appeared in the upper left corner and the program was not responding. All I could do was to end the CS4 task.
    After that, whenever I created even a simple rectangle, at first the colors would appear as indicated for “Fill and Stroke”, but when I selected the object to see its properties, either the stroke or the fill color box would have a red slash line, indicating a “no color”, and I couldn’t select the color box to change it using the ink bottle tool, although the other box worked fine.
    Rebooting did not help. So I uninstalled CS4 (and didn’t keep the preferences), rebooted, then reinstalled it. The problem was still there. Logging on as another user didn’t help. I tried restoring the Windows system to before I installed CS4 and resinstalling it and that didn’t work. I have a disfunctional CS4 now and I don’t know what to do to fix it. Please help me. Thank you.

    Have you updated flash to 10.0.2?  Have you played around with a bunch of different selections, objects, and so forth to see if this box is always incorrect?  I think there's some particular selection (order of selecting things, and so on), where the color swatches in one location don't work as expected. However, it should not happen all the time and from what I recall it was fairly easy to work around (I can't even figure out what this was - so probably not it, as it seems hard to run into or perhaps now fixed).
    Also make sure you have the stroke selected - if you don't have everything selected, either the fill or stroke will show no color and dim depending on the selection.

  • Fill multiple layers with color (CS3)?

    Using Photoshop CS3
    I created a button set for a web forum. Each button is in its own group. Each group contains a text layer and a base layer. And each button appears to be next to each other, even though they are on different layers in different groups. This allows Photoshop to slice things up as different buttons when I save to web or devices.
    Here’s my quandry. The buttons are 1 solid color with 2 borders. I want to replace the button color on all buttons, but leave the borders alone. Using Magic Wand set to Sample all Layers I can get a marquee that appears to select all the areas on all the layers. But when I use the bucket tool to replace that color on all layers, it won’t do it. It puts all the color on the top layer – even though I have the bucket tool set to All Layers.
    Is there a way to fill all the layers in the way I want.
    By the way, I thought of using a color overlay on each button, and then I could simply copy the style to all the base layers. But see no way to also have two independent strokes for the two outline colors. On the other hand, if you know of some better way to do any of this, please let me know.

    I'm sorry. I intended to mention that Fill doesn't work either, but it looks like I left that out. Using the Fill command places all the color on the top layer only. I also tried using Select Similar along with Bucket or Fill to select the base layers, but that didn't help.

Maybe you are looking for