I want to have the tint to the color information of the Cos Object.

I have developed a plug-in now.
My plug-in is creating a color with a Cos Object.And, It is used to fill the art object.
I would like to have the information of tint to this color.
Please tell me how to have a tint.
--- The following is the code which creating a color. ---
    PDEColorSpace spotColorSpace;
    CosDoc cosDoc = PDDocGetCosDoc(pdDoc);
    char *functionText = "{50.0 -128.0 -128.0}";
    // Domain
    CosObj domain = CosNewArray(cosDoc, false, 2);
    CosArrayPut(domain, 0, CosNewFloat(cosDoc, false, 0.0f));
    CosArrayPut(domain, 1, CosNewFloat(cosDoc, false, 1.0f));
    // Range
    CosObj range = CosNewArray(cosDoc,false,6);
    CosArrayPut(range, 0, CosNewFloat(cosDoc, false, 0.0f));
    CosArrayPut(range, 1, CosNewFloat(cosDoc, false, 100.0f));
    CosArrayPut(range, 2, CosNewFloat(cosDoc, false, -128.0f));
    CosArrayPut(range, 3, CosNewFloat(cosDoc, false, 127.0f));
    CosArrayPut(range, 4, CosNewFloat(cosDoc, false, -128.0f));
    CosArrayPut(range, 5, CosNewFloat(cosDoc, false, 127.0f));
    // create dictionary
    CosObj tintTransform = CosNewDict(cosDoc, false, 4);
    CosDictPut(tintTransform,ASAtomFromString("FunctionType"),CosNewInteger(cosDoc,false,4));
    CosDictPut(tintTransform, ASAtomFromString("Domain"), domain);
    CosDictPut(tintTransform, ASAtomFromString("Range"), range);
    ASStm asStm = ASMemStmRdOpen(functionText, strlen(functionText));
    CosObj function = CosNewStream(cosDoc, true, asStm, 0, true, tintTransform, CosNewNull(), -1);
    ASStmClose(asStm);
    // create Lab
    PDEColorSpace altSpace = createLab(pdDoc);
    PDESeparationColorData data;
    data.alt = altSpace;
    data.name = ASAtomFromString("MyColor");
    data.size = sizeof(data);
    data.tintTransform = function;
    PDEColorSpaceStruct clrStruct;
    clrStruct.sep = &data;
    spotColorSpace = PDEColorSpaceCreate(ASAtomFromString("Separation"), &clrStruct);

>lrosenth
Thank you for the reply.
Sorry... I forgot to write createLab() function.
I am trying to create a color in the separation color space.
I just have to set the lab to the AlternateSpace.
Please tell me how to make the separation color and how to have the tint to the separation color.
PDEColorSpace createLab(PDDoc pdDoc)
    PDEColorSpace labColorSpace;
    CosDoc cosDoc = PDDocGetCosDoc(pdDoc);
    // Lab
    CosObj csLab = CosNewArray(cosDoc, false, 2L);
    CosObj csLabDic = CosNewDict(cosDoc, false, 3L);
    // WhitePoint
    CosObj csWhitePoint = CosNewArray(cosDoc, false, 3);
    CosArrayPut(csWhitePoint, 0, CosNewFloat(cosDoc, false, 0.964203f));
    CosArrayPut(csWhitePoint, 1, CosNewFloat(cosDoc, false, 1.0f));
    CosArrayPut(csWhitePoint, 2, CosNewFloat(cosDoc, false, 0.824905f));
    CosDictPutKeyString(csLabDic, "WhitePoint", csWhitePoint);
    // Range
    CosObj csRange = CosNewArray(cosDoc, false, 4L);
    CosArrayPut(csRange, 0, CosNewFloat(cosDoc, false, -128.0f));
    CosArrayPut(csRange, 1, CosNewFloat(cosDoc, false, 127.0f));
    CosArrayPut(csRange, 2, CosNewFloat(cosDoc, false, -128.0f));
    CosArrayPut(csRange, 3, CosNewFloat(cosDoc, false, 127.0f));
    CosDictPutKeyString(csLabDic, "Range", csRange);
    // BlackPoint
    CosObj csBlackPoint = CosNewArray(cosDoc, false, 3);
    CosArrayPut(csBlackPoint, 0, CosNewFloat(cosDoc, false, 0.0f));
    CosArrayPut(csBlackPoint, 1, CosNewFloat(cosDoc, false, 0.0f));
    CosArrayPut(csBlackPoint, 2, CosNewFloat(cosDoc, false, 0.0f));
    CosDictPutKeyString(csLabDic, "BlackPoint", csBlackPoint);
    CosArrayPut(csLab, 0L, CosNewNameFromString(cosDoc, false, "Lab"));
    CosArrayPut(csLab, 1L, csLabDic);
    labColorSpace = PDEColorSpaceCreateFromCosObj(&csLab);
    return labColorSpace;

Similar Messages

  • I have been sharing my iTunes account with my kids...now they are getting older and want to have their own accounts, how do I share the songs I purchased for them on my account with them on their new accounts?

    I have been sharing my iTunes account with my kids...now they are getting older and want to have their own accounts, how do I share the songs I purchased for them on my account with them on their new accounts?  Is there a way to transer from my main account their new accounts?  And can I share music from my account with them?

    You can't currently transfer content from one account to another account. As long as the tracks are on the computer's iTunes that they use/sync to, and your account is authorised on that iTunes, then they should be able to continue to use them.

  • I want to buy a ipod as my iphone as no memory from all of my music, is there a way of transferring the music from the iphone to the ipod? i dont want to have to re download or buy all of the music again!

    i want to buy a ipod as my iphone as no memory from all of my music, is there a way of transferring the music from the iphone to the ipod? i dont want to have to re download or buy all of the music again! Don't want to buy a ipod then find out this! Please help!

    You can redownload most iTunes purchases directly to the iPod by:        
      Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise you will have to sync from your iTunes library.

  • I want to buy a 13 inch MacBook Pro but I want to have both Arabic letters and English letters on the keyboard, is that possible?

    I want to buy a 13 inch MacBook Pro but I want to have both Arabic letters and English letters on the keyboard, is that possible?

    draelgendi wrote:
    I want to buy a 13 inch MacBook Pro but I want to have both Arabic letters and English letters on the keyboard, is that possible?
    Yes, if there are Arabic letters then there have to be English letters as well, because otherwise you could not type any email or web addresses.
    As to where you can buy such a machine, you have to contact stores in the country where you live directly yourself and ask them.  Nobody in these forums represents Apple or any store.  Apple stores do not ship outside the country where they are located.

  • How do I switch between the tint slider and CMYK slider under the colour palette?

    I have a number of process colours loaded in my swatches palette and when I select a colour and have the colour palette on show it defaults to the tint slider. I have the option from the flyout to change to CMYK but when I do this how do I change back to the tint slider?

    Once you edit the color of the object in the Color panel using the sliders you no longer have the swatch applied because you've change the color as a local override. You could add the new color to swatches, or if your intent is to globally change a swatch you sould do it in the swatch definition dialog.

  • I have recently been asked to research information for the following.

    I have recently been asked to research information for the following.
    Add a backend SQL server to the current Access 2010 set up we have in place as the front end, for 11 users.
    Upgrade to Access 2013 which I understand includes the SQL at no additional charge.
    I am looking for pro vs cons between the two options. 

    Hello,
    Your number 1 option was called “Upsizing an Access Database to SQL Server”
     and keeps the front-end on the Access side. The issue here is that the upsizing process was not always an easy one: you may find some issues with the way SQL handles dates and the way VBA generates those dates; VBA handles strings with double quotes
    while T-SQL uses single quotes; VBA functions like Date() and Now() should be replaces by T-SQL functions like CONVERT/CAST and GETDATE; InStr and Mid functions should be replaced by Substring function on T-SQL; the IIF function should be replaced by the CASE
    statement (T-SQL); need to convert Access table constrains to SQL Server constraints; etc.
    Now with Access 2013 (Option 2), you don’t have to think about the above upsizing process anymore, since that old access project/linked server functionalities are
    replaced by natively use SQL Server databases. That means no more 2 GB limit for Access databases.
    Now Access 2013 makes available the possibility to use SQL Server Reporting Services for reporting and opens the gateway to SQL Azure.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • N unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    some one can help me please
    i have no idea what i must to do.
    an unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    The Exception Handler gave all the info that you need. No need to print the whole stack trace.
    The exception handler says
    Exception Details: java.lang.IllegalArgumentException
    TABLE1.NAME
    Look in the session bean (assuming that is where your underlying rowset is). Look in the _init() method for statements similar to the following:
    personRowSet.setCommand("SELECT * FROM TRAVEL.PERSON");
    personRowSet.setTableName("PERSON");
    What do you have?

  • From the center of notifications missing information about the weather, does anyone notice this too?

    from the center of notifications missing information about the weather, does anyone notice this too?

    Also turn on today summary in notification center settings

  • HT2731 My brother & I have been using the same iTunes account. We now want to have separate accounts. Can we still keep the apps we have on our own devices?

    My brother and I have been using the same iTunes account. We now want to have our own separate accounts.Can we still keep the apps we have on our own devices?

    Your question is almost too much a personal one, begging the question "do we (husband and wife) feel comfy sharing one account on the Mac"   maybe thats why nobody answered you.
    It doesnt complicate anything, but it adds steps for switching accounts on the Mac/ purchases etc. of course
    since your question is mostly personal, ..I wont answer THAT part of it, but creating a new account is easy.....messing with switching back and forth is also a personal preference 'issue' as well.   I prefer to keep things simple, but...........you and yours,  I dont know.......
    http://support.apple.com/kb/PH11468

  • I want to get my original photos out of aperture and can't seem to find a way to do it, I can't locate an original folder, I understand that images I have edited won't be exported I just want to have a copy of my files out of the system

    I want to have my photo files all in one place.  I want them out of the Apeture libary structure.
    Thank you
    Joe

    Hello Joe,
    do you want to continue using Aperture or do you want to manage your images yourself?
    If you want to continue using Aperture, but to be able to browse your images without launching Aperture, then relocate your master image files:
    Select all images in the Browser
    Use the File menu:     File -> Relocate master        and select a folder, where you want to store the master image files.
    Be warned, that you must not edit, change, tag these files in any way, unless using Aperture itself to do the modification. Otherwise the link between master image files and version in Aperture may be broken.
    Make sure you have a working backup of your Aperture Library before you do that.
    But why do you want access to your images outside Aperture? Aperture as a digital asset management system is supposed to be able to manage you images in versatile a way, to give you access to all information you need. So what are you missing?
    Regards
    Léonie

  • I don't want to have to use a PW to log onto the company web/Intranet

    Firefox Change the look of my global calendar #1 and #2. I shouldn't have to have a password to log onto our intranet/homepage

    First, make sure you are not in "full screen" mode. The F11 function key switches between full screen and normal modes.
    Next, you can enable/disable different toolbars using the classic View menu. If you are using the orange Firefox button (abbreviated menus), tap the Alt key or press the F10 key to display the classic menu bar.
    If you are already showing the "Navigation Toolbar" but the address box part is missing, you can reset your toolbars back to their defaults. Here's how:
    (1) Open your personal settings (AKA Firefox profile) folder
    Help (or Alt+h) > Troubleshooting Information > "Show Folder" button
    (2) Switch back to Firefox and exit the program (e.g., File > Exit)
    (3) Wait a few moments for Firefox to finish updating files in your settings folder, then rename '''localstore.rdf''' to something else, like localstore-bad.rdf or localstore.old. Alternately, you can delete the file.
    (4) You're done with your profile folder and you can restart Firefox now.
    Any luck?

  • I want to have a refund as photoshop ellements 13 is the same as photoshop elements 11 how do i get a refund

    How do i get a refund as photoshop elements 13 is the same as photoshop elements 11 How do i get a refund@@

    To put the album into one group, in the Albums view, select the album and right-click.
    and on the pop-up menu, choose Get Info...
    ..."Yes"
    You should also check on the Info tab and make sure that the Album Artist has "Various Artrists" in it.

  • I have set up iTunes and iCloud with my iPhone 4S but have not been able to get information from the manual for transferring contacts from Microsoft Office Outlook to my phone contacts.  Is this possible and, if so, how are the contacts transferred?

    I have set up iTunes and iCloud with my computer and my iPhone 4S but have not been able to determine whether contacts on Microsoft Office Outlook can be transferred from the pc computer to the phone.  Is transfer possible using iTunes or iCloud or other method to transfer the contacts.  If so, what are the steps for making the transfer successful.
    ETGamboa

    Thank you Thank you!! Quickest response EVER on a help community!! Awesome!!

  • How do you make the background all one color without disturbing the subjects?

    I shot a wedding this past weekend.  Where the bridal party walked in there was an acrhway with christmas lights as the only lights.  It made the background all splotchy.  I have tried the paintbrush tool, but only preset choices, such a textures and such.  Won't help.  I need to work around people and make the background all one color.  I've tried using a vignette, but it made it too dark, and when you lighten the exposure you see all the splotches.  Does anyone have any advice.  I am in a  jam, I want the colors to be uniform for all the bridal party....and not look like someone threw paint on the wall.  HELP PLEASE!
    I'm using Adobe Photoshop Elements 10.

    You'll need to post an example so we can figure out the best way.
    Ken

  • Is it at all possible for a program off the computer to get password information from the password manager?

    With all of the discussion about needing an "external" password manager (outside the browser), and recent demonstration about how much information can be gotten about web browsing, IP addresses, physical location (at least down to the city), etc., I am concerned as to whether it IS safer to use a 3rd party password manager instead of the one in Firefox.\
    ed

    If you use a Master Password that is sufficiently strong then you should be safe.
    * https://support.mozilla.org/kb/create-secure-passwords-keep-your-identity-safe
    * http://en.wikipedia.org/wiki/Password_strength
    *https://www.microsoft.com/security/pc-security/password-checker.aspx
    If you do not use a master password then having access to key3.db and signons.sqlite is sufficient to have access to the encrypted names and passwords by placing the two files in a Firefox profile folder.

Maybe you are looking for

  • FTP Receiver Adapter.

    Hi All, From XI I need to FTP file to outer system using FTP Receiver Adapter Now due to security reason my client wants to use FTPS I checked in FTP Receiver Adapter -- there is an option Connection Security -- FTPS (FTP Using SSL/TLS) for Control C

  • Uploading a video to youtube?

    how do you upload a video to youtube from the iPhone 4

  • N97 PHOTO ALBUM

    Hi, i have some photos on my phone from my holidays and i want to put them into an album. I created an album and copied the pics that i wanted into the album, now the pics dont move they just copy so i'm left with the pics in both the gallery and the

  • Adobe Reader 9: create smaller PDFs out of a larger one

    I have Adobe Reader 9 and I'd like to seperate a multi-page document into several smaller 1-2 page documents.  I know that you can Print to PDF in Adobe Professional, but I don't currently have that option or software.  I am also aware that I could d

  • Windows support software for bootcamp 5.1.2

    Hey guys, I just finished installing windows 8.1 for my mac (MacBook Pro mid 2012). I realised that keyboards function aren't working (sound, light, etc.) and no wifi. It's because I do not have the driver install. The problem is, I cannot find windo