Accessing pixel colours for 2 layers

Hi,
I know I'm probably missing something but I can't seem to get my head around how to access what colours individual pixels are.
I suppose I should briefly describe what I'm trying to do so here goes. I need to make a photoshop plugin for a college project. The functionality required has been provided to me in the form of an external dll which I need to call. Two of the paramaters needed to do this are linear unsigned char arrays for the entire two images which have values for each pixel dependent on their colours . The plan is to have the background layer be the image the user wants to modify and a second layer where the user indcates what they want to modify by making strokes of varying colours. As such I need to create these char arrays based on the pixel values. The background one will simply be a case of storing the colours as unsigned chars and the second one will require assigning specific numbers based on the colours.
From what I have read the ReadPixelsFromLevel(...) function seems to be my best bet, although I could be wrong there, but I'm not quite sure what to do with the destination once values have been read there.
Any insight would be appreciated as my deadline is looming ever closer and my progress has stalled somewhat.
Thanks.

I think your assumption was right, you just need to get different channels descriptors for ReadPixelsFromLevel function.
you can obtain them from the filterRecord->documentInfo structure.
filterRecord->documentInfo->targetCompositeChannels is your writable channel (eg. red).
if you want to read from the layer other than active, you should first get the layersDescriptor and then its channelDescriptor,
eg.  filterRecord->documentInfo->layersDescriptor->compositeChannelsList.

Similar Messages

  • How to get pixel colour?

    Is there any way to get pixel colour from specified point? Example: colour = image.getPixel(x, y);
    J2ME/MIDP 1.0
    Thanks!

    {color:#800000}*I am happy to compare the two pixels of same image using this code in Java:*
    {color}
    Image ori, nw;
    public void init()
    { ori = getImage(getDocumentBase(),"flower.jpg");
    int pxl[]= new int [65536];
    PixelGrabber pg = new PixelGrabber(ori,0,0,256,256,pxl,0,256);
    // Image is stored into Array
    try{ pg.grabPixels(); }
    catch(InterruptedException e) {}
    for(int i=0;i<65536;i++)
    { int p = pxl[i];
    int ri = (0xff & (p>>16));
    int gi = (0xff & (p>>8));
    int bi = (0xff & p); // Take the RGB value of each pixel
    for(int j=0;j<255;j++) // Chk. other similar pixel in color range of 0 to 255
    int q = pxl[j];
    int rj = (0xff & (q>>16));
    int gj = (0xff & (q>>8));
    int bj = (0xff & q);
    if ( (ri==rj)&&(gi==gj)&&(bi==bj)&&(!(i==j)))
    { ri+=70;//if (ri<0) ri = 0;
    gi+=70;//if (gi<0) gi = 0;
    bi+=70;//if (bi<0) bi = 0;
    pxl[i] = ( 0xff000000|ri<<16|gi<<8|bi); // Change value
    else
    pxl[i] = ( 0xff000000|ri<<16|gi<<8|bi);// Keep as it is
    Email : [email protected], Profile: www.aribas.edu.in/Mr.Brijesh_Jajal.htm

  • Changing Pixel Colours

    Hi,
         Is there a way of changing pixel colours in (say) a Graphics (or image) object? I want to be able to create a Graphics object, and then change pixel colours, as determined by the results of a numerical simulation, as results are generated.
    Any help appreciated!

    You can use the drawLine to draw a one-pixel line in the right place.
    Alternatively (and probably better) use an int array to contain your image data and use a MemoryImageSource to generate an Image for display from that.

  • Can't install pixel bender for CS4

    When I click on the download for pixel bender for CS4, it downloads the one for CS5. Can someone give me the correct file to download? I need one for both 32 bit and 64 bit (two different computers). Thanks!

    Thanks for the summary--it definitely helped. The problem you are describing is well known and has been discussed, documented, and resolved many times and in many places. You need to run Adobe Extension Manager CS4 as administrator (right-click the Adobe Extension Manager executable and select "Run as administrator" from the contextual menu) in order to install the Extension. This is necessary because of the elevated privileges required to access the Program Files directory and sub-directories. Please see the installation instructions found here http://labs.adobe.com/technologies/pixelbenderplugin/ or my answer (posed in the form of a question) in this message http://forums.adobe.com/message/3877496#3877496.

  • Check pixel colour

    In a game, I want to check if a ball is 'in or out' by determining the pixel colour it has landed on - in this case the stage background colour. Can anyone help with the AS3 code? Thanks.

    you have to use the bitmapdata class to determine pixel color but i'm not sure that makes sense for whatever you're trying to do.  to be sure, you can't determine the stage color using it.
    in addition, there is probably a better way using hitTestObject or hitTestPoint to do whatever you want.

  • Primary/secondary colours for metal themes

    How do I get the primary and secondary colours for the current Metal theme? The methods getPrimary1() etc have protected access!
    I don't want to get one of the other colours that use the primary colours as default, eg getControlDarkShadow(), because in the current theme this may have been overridden!
    Any suggestions?
    Thanks,
    Phil

    How do I get the primary and secondary colours for the current Metal theme? The methods getPrimary1() etc have protected access!
    I don't want to get one of the other colours that use the primary colours as default, eg getControlDarkShadow(), because in the current theme this may have been overridden!
    Any suggestions?
    Thanks,
    Phil

  • Crashes when running applications from network share - "Windows cannot access the file for one of the following reasons"

    Hi,
    starting a couple of weeks ago, we get the following error(s) when running applications from a network share. We don't know what causes this, we are not aware of any major changes in our network infrastructure or client/Server configuration. We did upgrade
    a lot of machines to Windows 8, but the issue also occurs on older Win7 computers.
    We figured out a workaround though: The applications run fine when launching from a FQDN share (like
    \\share.domain.Company.com) and only cause problems when running from
    \\share directly. They have worked fine for years without FQDN though.
    Any ideas?
    Error Details (the Kind of error differs greatly):
    # 1 #
    Log Name: Application
    Source: Application Error
    Date: ...
    Event ID: 1005
    Task Category: (100)
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: vmDEV
    Description:
    Windows cannot access the file for one of the following reasons: there is a problem with the network connection, the disk that the file is stored on, or the storage drivers installed on this computer; or the disk is missing. Windows closed the program XYZ
    because of this error.
    Program: XYZ
    File:
    The error value is listed in the Additional Data section.
    User Action
    1. Open the file again. This situation might be a temporary problem that corrects itself when the program runs again.
    2. If the file still cannot be accessed and
    - It is on the network, your network administrator should verify that there is not a problem with the network and that the server can be contacted.
    - It is on a removable disk, for example, a floppy disk or CD-ROM, verify that the disk is fully inserted into the computer.
    3. Check and repair the file system by running CHKDSK. To run CHKDSK, click Start, click Run, type CMD, and then click OK. At the command prompt, type CHKDSK /F, and then press ENTER.
    4. If the problem persists, restore the file from a backup copy.
    5. Determine whether other files on the same disk can be opened. If not, the disk might be damaged. If it is a hard disk, contact your administrator or computer hardware vendor for further assistance.
    Additional data
    Error value: C000020C [ also seen with code C00000C4]
    #2 (German error Messages from now on, we only use German OSes, the above english one is translated based on similar error Messages I found on the web) #
    Name der fehlerhaften Anwendung: XYZ.exe, Version: 2015.0.496.5054, Zeitstempel: 0x54ea67c3
    Name des fehlerhaften Moduls: clr.dll, Version: 4.0.30319.34014, Zeitstempel: 0x52e0b784
    Ausnahmecode: 0xc0000006
    Fehleroffset: 0x00026549
    ID des fehlerhaften Prozesses: 0x13ac
    Startzeit der fehlerhaften Anwendung: 0x01d055a854d36445
    Pfad der fehlerhaften Anwendung: \\share\application.exe
    Pfad des fehlerhaften Moduls: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
    Berichtskennung: 949ea933-c19b-11e4-bf04-78542e186754
    Vollständiger Name des fehlerhaften Pakets:
    Anwendungs-ID, die relativ zum fehlerhaften Paket ist:
    Anwendung: XYZ.exe
    Frameworkversion: v4.0.30319
    Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
    Ausnahmeinformationen: Ausnahmecode c0000006, Ausnahmeadresse 720B6549
    Stapel:
    # 3 #
    Anwendung: WpfApp.exe
    Frameworkversion: v4.0.30319
    Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
    Ausnahmeinformationen: System.Runtime.InteropServices.SEHException
    Stapel:
       bei SP.Forms.AutoCompleteSelectionBase.OnEnter(System.EventArgs)
       bei System.Windows.Forms.Control.NotifyEnter()
       bei System.Windows.Forms.ContainerControl.UpdateFocusedControl()
    # 4 #
    Anwendung: WpfApp.exe
    Frameworkversion: v4.0.30319
    Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
    Ausnahmeinformationen: System.Runtime.InteropServices.SEHException
    Stapel:
       bei System.IO.UnmanagedMemoryStream.ReadByte()
       bei System.IO.BinaryReader.ReadByte()
       bei System.IO.BinaryReader.Read7BitEncodedInt()
       bei System.Resources.ResourceReader._LoadObjectV2(Int32, System.Resources.ResourceTypeCode ByRef)
       bei System.Resources.ResourceReader.LoadObjectV2(Int32, System.Resources.ResourceTypeCode ByRef)
       bei System.Resources.ResourceReader.LoadObject(Int32, System.Resources.ResourceTypeCode ByRef)
       bei System.Resources.RuntimeResourceSet.GetObject(System.String, Boolean, Boolean)
       bei System.Resources.RuntimeResourceSet.GetObject(System.String, Boolean)
       bei System.Resources.ResourceManager.GetObject(System.String, System.Globalization.CultureInfo, Boolean)
       bei System.Resources.ResourceManager.GetStream(System.String, System.Globalization.CultureInfo)
    # 5 #
    Anwendung: WpfApp.exe
    Frameworkversion: v4.0.30319
    Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
    Ausnahmeinformationen: System.Runtime.InteropServices.SEHException
    Stapel:
       bei System.Reflection.RuntimeParameterInfo.get_Name()
       bei System.Diagnostics.StackTrace.ToString(TraceFormat)
       bei System.Environment.GetStackTrace(System.Exception, Boolean)
       bei System.Exception.GetStackTrace(Boolean)
       bei System.Exception.ToString(Boolean, Boolean)
       bei System.Exception.ToString(Boolean, Boolean)
       bei System.Exception.ToString(Boolean, Boolean)
       bei System.Exception.ToString()
    # 6 #
    Name der fehlerhaften Anwendung: XYZ.exe, Version: 2015.0.496.5054, Zeitstempel: 0x54ea834f
    Name des fehlerhaften Moduls: KERNELBASE.dll, Version: 6.3.9600.17278, Zeitstempel: 0x53eeb460
    Ausnahmecode: 0xe0434352
    Fehleroffset: 0x00012f71
    ID des fehlerhaften Prozesses: 0xa68
    Startzeit der fehlerhaften Anwendung: 0x01d0559cb7ec4ed6
    Pfad der fehlerhaften Anwendung: \\share\XYZ.exe
    Pfad des fehlerhaften Moduls: C:\WINDOWS\SYSTEM32\KERNELBASE.dll
    Berichtskennung: 010514d0-c190-11e4-bf04-78542e186754
    Vollständiger Name des fehlerhaften Pakets:
    Anwendungs-ID, die relativ zum fehlerhaften Paket ist:
    # 7 #
    Name der fehlerhaften Anwendung: XYZ.exe, Version: 2015.0.496.5054, Zeitstempel: 0x54ea7a6e
    Name des fehlerhaften Moduls: ntdll.dll, Version: 6.3.9600.17630, Zeitstempel: 0x54b0d74f
    Ausnahmecode: 0xc0000006
    Fehleroffset: 0x0006db27
    ID des fehlerhaften Prozesses: 0x18dc
    Startzeit der fehlerhaften Anwendung: 0x01d0559cb08529c3
    Pfad der fehlerhaften Anwendung: \\share\xyz.exe
    Pfad des fehlerhaften Moduls: C:\WINDOWS\SYSTEM32\ntdll.dll
    Berichtskennung: ef389186-c18f-11e4-bf04-78542e186754
    Vollständiger Name des fehlerhaften Pakets:
    Anwendungs-ID, die relativ zum fehlerhaften Paket ist:

    Hi,
    >>The applications run fine when launching from a FQDN share
    It sounds like a DNS suffix issue. When this issue occurs, please try to ping share on the client, then check if the corresponding IP address is correct. If the IP address is wrong, please adjust your settings of DNS to make sure that the client can resolve
    the share correctly.
    If it's very hard to change the settings of the DNS for some reason, as a work around, we can add the entry into the clients' hosts file.
    Best Regards.
    Steven Lee Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How do I access Disk Utility for 10.7.1?

    How do I access Disk Utility for 10.7.1? I found it in the forums a few weeks ago, used it, then lost the directions. This is a last ditch attempt
    to use OS Lion. I parted my hair incorrectly when I installed and have been plagued by the dread rainbow spinning ball in EVERY application. Yes, every. Name one, Safari, Firefox, Text Edit, Mail, Excel, Word, iTunes, Garage Band, Calculator, Calender, iPhoto....yes, every, and I cannot
    find a solution that works. I have back up files on two different hard drives 500 gig and 1 terrabyte with all my music, photo and writing files.
    I am a writer and a musician so imagine the frustration. OS 10.6 is an option of course. My dedication to Apple and each new OS is deep so
    I am hoping that somehow there will a fix, an upgrade, something that does not require me to go bac to the much more endangered species named OS.
    hahhaa! Just stalled waiting for the ball to finish with it's random spinning.... SO, this is like a last desperate .... it just did two more stalls.
    NO OTHER apps running, just little Firefox holding on for dear life, last desperate request for a fix.
    MacKeeper has been great in sending helpful directions for getting the Antivirus to work after it mysteriously decided to stop working, Quite MacKeeper,  go to Activity Monitor, force quit helper, start up MacKeeper and run program. It works!
    SO before my third stall stops me, please post directions to open disk utility in administration mode so that I can do any further repairs that have not worked by using it from the open system. Also keychain synching stopped working with Lion.
    Thanks to any and all who can help.

    Press and hold Command-R keys and reboot. You'll then start up in the Lion Recovery HD. You'll find Disk Utility there.
    Command-R to the rescue.
    Just hold down Command-R during startup and Lion Recovery springs into action. It lets you choose from common utilities: You can run Disk Utility to check or repair your hard drive, erase your hard drive and reinstall a fresh copy of Lion, or restore your Mac from a Time Machine backup. You can even use Safari to get help from Apple Support online. And if Lion Recovery encounters problems, it will automatically connect to Apple over the Internet.

  • In VB Programming code -- How to access the formula for suppressing a field

    In VB Programming code -- How to access the formula for suppressing a field
    I am using Crystal Reports 2008 v1
    Using VB code, I am attempting to modify a Crystal Report before exporting it into a PDF format and then displaying it on the Web.
    My problem is that I am unable to access the formula used to dynamically suppress a field.
    The following code is working:
    mySections = rd.ReportDefinition.Sections
    For Each mySection As CrystalDecisions.CrystalReports.Engine.Section In mySections
       ' myFieldToChange is a String set to the text of the field I need to adjust the Suppression
       iloop = 0
       For Each RecObj As CrystalDecisions.CrystalReports.Engine.ReportObject In mySection.ReportObjects
               If mySection.ReportObjects.Item(iloop).Name.ToLower = myFieldToChange Then
                   myTextObject = CType(mySection.ReportObjects.Item(iloop), CrystalDecisions.CrystalReports.Engine.TextObject)
                   myTextObject.Text = "new field text goes here"
                   mySection.SectionFormat.EnableSuppress = True
                   '  Here is where I want to change the formula for the Suppression
                End if
                iloop = iloop + 1
        Next
    Next
    I can not find any reference to the actual suppression formula in the SDK help file.
    Note, the EnableSuppress can be set to True for False, but if there is a formula for dynamic suppression, the True or False value is overwritten.  The results of the formula determine the suppression.
    Is there a way to reference this formula.  I know that I can put on in using the Crystal Report Designer software, I need to modify this formula using VB code and the SDK.

    Hello, Mark;
    If you are using the ReportDocument object you do not have access to the Conditional Suppression formula. You can get around it by using a formula field in the report for the supression and then using the FormulaField code to change it at runtime.
    If you want to change the supression condition directly at runtime you need to use RAS and the ReportClientDocument.
    Elaine

  • I am at Ramstein AB Germany.  My iphone screen was smashed badly on the flight to Germany this morning.  WHEN I access apple support for this subject it gives me 3 options call now, call me now or call me later.  As I am in Germany with no coverage and no

    I am at Ramstein AB Germany.  My iphone screen was smashed badly on the flight to Germany this morning.  WHEN I access apple support for this subject it gives me 3 options call now, call me now or call me later.  As I am in Germany with no coverage and no working phone none of those options will work.  Can you get this e-mail to someone who can help.  My iphone serial # is C38xxxxxx. 1) I need to know where and how I can get a replacement somewhere nearby in Germany 2) If 1 is not an option I need to set up an appt to get a to get a new iphone at an apple store in Atlanta GA in the evening of 11 July.
    Thank you very much, Phil Edelen
    <Edited By Host>

    Thanks, my wife is the one serving I am retired and trying to follow her as much as I can. 
    I will schedule an appt for my next time stateside.  I have spent too much time on many Apple web sites trying to get an e-mail to communicate with anyone at Apple to no avail, only phone numbers. I guess if you are overseas with no international access you are out of luck communicating with them.  I did find one e-mail address but the reply was computer generated and provided useless links.
    If anyone has any e-mail address for anyone at Apple I would appreciate it.
    Thanks again,
    Phil

  • I can't synchronize my iPod's with my iTunes software (Windows Vista Home Premium) due to problems with the access authorization / rights for this operation

    Hi there,
    I'd like to ask you something:
    I'm trying to synchronize all my iPod's (I have as many as 4 iPods: 2 iPod touch a 8 GB each and 2 iPod classic a 160 GB each) with my iTunes software (Version 11.3.1 which is installed on a Windows PC (Windows Vista Home Premium)). Unfortunately, the iTunes software refuses to run the command "synchronize with the iPod connected" regarding each and every iPod I have. iTunes just declares:
    Synchronizing is impossible because I wouldn't hold the access authorization / rights for this operation.
    I uploaded the songs at issue to my iTunes folder from CD's (all songs are in AAC format now).
    What is this access authorization, why was something like that invented and what can I do to get it?
    How do I have to proceed in detail?
    What would it cost?
    I am brand new here and have never ever made a post in any support community anywhere in the world in my life. Well, and I am not excessively knowledgeable about the particular computer or mac language but I know the very basics or can find out about them.
    Anyways - can you help me please?
    If you can't help me, who can do so?
    It would be nice if you could answer me as soon as possible!
    Thank you guys
    Prying Pedro

    Yes, others have experienced the problem, a simple search of the forums would have revealed that and the simple solution.
    Termporarily disable any security software on the computer.

  • How can I get Pantone colours (for example PMS 285) back in CS6 Illustrator?

    Pantone colours (for example PMS 285) are not available in CS6 ( Illustrator and Indesign). How can I get the right colours back?

    Are you certain they are not available?
    Mike

  • "Error while accessing porting layer for ORACLE database via getSessionId()

    Hi,
    My ejb3.0 Entity is created from Emp table in scott/tiger schema of an Oracle 10g database. I am guessing I made some mistake creating the datasource or uploading the driver, because when I run my application, I get a long exception stack trace. The bottom-most entry in the stack trace is:
    Caused by: com.sap.sql.log.OpenSQLException: Error while accessing porting layer for ORACLE database via getSessionId().
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:148)
         at com.sap.sql.jdbc.direct.DirectConnectionFactory.createPooledConnection(DirectConnectionFactory.java:527)
         at com.sap.sql.jdbc.direct.DirectConnectionFactory.createDirectPooledConnection(DirectConnectionFactory.java:158)
         at com.sap.sql.jdbc.direct.DirectConnectionFactory.createDirectPooledConnection(DirectConnectionFactory.java:118)
         at com.sap.sql.connect.factory.PooledConnectionFactory.createPooledConnection(PooledConnectionFactory.java:119)
         at com.sap.sql.connect.factory.DriverPooledConnectionFactory.getPooledConnection(DriverPooledConnectionFactory.java:38)
         at com.sap.sql.connect.datasource.DBDataSourceImpl.createPooledConnection(DBDataSourceImpl.java:685)
         at com.sap.sql.connect.datasource.DBDataSourcePoolImpl.matchPool(DBDataSourcePoolImpl.java:1081)
         at com.sap.sql.connect.datasource.DBDataSourcePoolImpl.matchPooledConnection(DBDataSourcePoolImpl.java:919)
         at com.sap.sql.connect.datasource.DBDataSourcePoolImpl.getConnection(DBDataSourcePoolImpl.java:67)
         at com.sap.engine.core.database.impl.DatabaseDataSourceImpl.getConnection(DatabaseDataSourceImpl.java:36)
         at com.sap.engine.services.dbpool.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:123)
         ... 90 more

    Actually, now (after the GRANT described in my reply before) the Exception has changed to:
    Caused by: com.sap.sql.log.OpenSQLException: Error while
    accessing porting layer for ORACLE database via
    <b>getDatabaseHost</b>().
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException
    (Syslog.java:148)
         at com.sap.sql.jdbc.direct.DirectConnectionFactory.
    createPooledConnection(DirectConnectionFactory.java:527)
         at com.sap.sql.jdbc.direct.DirectConnectionFactory.
    createDirectPooledConnection(DirectConnectionFactory.java:158)
         at com.sap.sql.jdbc.direct.DirectConnectionFactory.
    createDirectPooledConnection(DirectConnectionFactory.java:118)
         at com.sap.sql.connect.factory.PooledConnectionFactory.
    createPooledConnection(PooledConnectionFactory.java:119)
         at com.sap.sql.connect.factory.DriverPooledConnectionFactory.
    getPooledConnection(DriverPooledConnectionFactory.java:38)
         at com.sap.sql.connect.datasource.DBDataSourceImpl.
    createPooledConnection(DBDataSourceImpl.java:685)
         at com.sap.sql.connect.datasource.DBDataSourcePoolImpl.
    matchPool(DBDataSourcePoolImpl.java:1081)
         at com.sap.sql.connect.datasource.DBDataSourcePoolImpl.
    matchPooledConnection(DBDataSourcePoolImpl.java:919)
         at com.sap.sql.connect.datasource.DBDataSourcePoolImpl.
    getConnection(DBDataSourcePoolImpl.java:67)
         at com.sap.engine.core.database.impl.DatabaseDataSourceImpl.
    getConnection(DatabaseDataSourceImpl.java:36)
         at com.sap.engine.services.dbpool.spi.
    ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:123)
         ... 90 more

  • How to restrict the change access in CRM for OLTP orders

    Hi Guru's,
    Please let me know  how to restrict the change access in CRM for the orders that are created in ECC. The ECC orders will only for display in CRM but not for change,
    We have  the orders that are  created in ECC, it will flows to CRM and should restrict the access to get in to the change mode in CRM but as of now CRM  system is allowing change mode for ECC orders and ending up with errors.
    Is there any additional middleware parameter that needs to be added to SMOFPARSFA table to get this functionality! Please advice! Thank your for your help.
    Regards
    Suneel

    Hi.
    You can use the PFCG role to control if the user is able to create, change, delete or only display a business transaction type.
    Regards.

  • What this mean? "could not rasterize because the pixel data for this layer is not"

    I've taken a color picture and made it black and white by doing the following: Layer>New Adjustment Layer>Hue/Saturation. I brought the saturation down to -100.  The pencil is selected and my foreground color is black.
    When I try to select the flowers in my picture to bring out their color (within the black and white image), I get a circle with a black line thru it and the error message "could not rasterize because the pixel data for this layer is not directly editable".  The steps I followed are working for most of my team but some of us are getting this error message.
    Any idea why and/or how to fix it?

    Ah, thank you!  I didn't have the mask selected. So once I did select it, the color came thru like magic. 

Maybe you are looking for