Get a value of gray of the pipette?
Today, someone asked me how to retrieve a value of gray with the pipette and get value from color to grayscale (K only) in another document CMYK.
As we know, the eyedropper tool gives color space RGB, at least for raster images. So, fine, I get a gray rectangle with RGB:
Now, how can I convert this to grey? I can't find a reasonable way. CMYK conversion gives me 35/28/28/0, which is useles.
Conversion to L * ab gives me 69/0/0, which seemed promising, but it's also the kind of a dead-end:
In Illustrator, I have a choice of greyscale:
Then, below the dodging on Illustrator, is it a reasonable way to get the equivalent gray value of InDesign?
I suppose you could write a script that uses the mathematics of color math... goal is difficult, and it is easy to screw it up.
Of course, there is a hint of irony color science fun than if we try to go the other way, say, 39.0% K in RGB, we get 169/171/174. I guess that it relates to color profiles and whatnot (as does why Illustrator and InDesign can not end up with the same numbers).
In any case, advice or of the convenient workarounds?
Would be really nice if ID had 'Gray levels' option like Illustrator...
I have usually just go to the separations preview and read...
Tags: InDesign
Similar Questions
-
Get Null value online by using the reference line.
Hi guys,.
I get the null value of the line everytime I use the reference line. Here is my code.
String rowReference = pageContext.getParameter (OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
Line OARow = (OARow) am.findRowByRef (rowReference);
System.out.println ("row" + Row);
If (line! = null)
{
System.out.println ("Surfing");
Object succObj = row.getAttribute ("INTERFACE_HEADER_ID");
String succStr = succObj.toString ();
throw new OAException ("" + succStr, OAException.INFORMATION);
}
Thank you
I found workaround to get a current line like «($OA.» CURRENT. Id_interface)"as REFERENCE of the LINE does not work. I'm passing the parameter to my Textinputbean in the application of process method and by capturing the current values in the process of request form
Treat the claim code
Hashtable params = new Hashtable (1);
params.put ("param1", pageName);
Hashtable paramsWithBinds = new Hashtable (1);
paramsWithBinds.put ("param2", new OADataBoundValueFireActionURL (oamessage, "{$INTERFACE_HEADER_ID}" ""));
updateIcon.setFireActionForSubmit ("updateRecord", params, paramsWithBinds, false, false);
Process form Code
If ('updateRecord".equals (pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM)))
{
System.out.println ("after" m "+ pageContext.getParameter ("param2")); / / give you current value as $OA. CURRENT. ID_INTERFACE
}
-
How to get 2 values of occurrence of the string?
Hello
I have given as below, so I need to get only 2nd value (between - value) and also give me simple ways
Select 112181-3769-3687 double
Select 11495-3677-3653 double
Select 1128-7608-7328 double
Select 114-3477-3953 double
Need the output of a
3769
3677
7608
3477
So I tried with the query below
SELECT Substr (Substr ('11495-3677-3653', Instr ('11495-3677-3653', '-') + 1),
(Substr ('11495-3677-3653', Instr ('11495-3677-3653', '-') + 1))
DE dual
Getting ORA-00907: missing a closing parenthesis error
Thank you
994122 wrote:
Thank you Kiss,
the regular expression is not simple code? as below
regexp_substr (str, ' [^-] +', 1, 2) second_value_regexp_substr
Anyway thanks Kiss...
Yes its simple and looks elegant. But when it comes to Normal performance of SQL functions are much better than the regular expression.
-
Getting a value record according to the existence or not...
Hello
Assume that the famous 'emp' table and another table called 'taste '.create table sample(empno number(4), dates1 date, dates2 date)
and some sample data:SQL> insert into sample values(7788,null,null);
After insertion of the sample of the table, the following query returns the required results:
1 row inserted
SQL> insert into sample values(7839,'10/10/2009',null);
1 row inserted
SQL> insert into sample values(7844,NULL,'11/10/2010');
1 row insertedselect empno,
The logic underlying the result set is:
sal,
case when empno not in (select empno from sample)
then 0
when dates2 is null
then 1
when dates2 is not null
then 0
end dates
from
(
select e.empno,
e.sal,
s.dates2,
s.dates1
from emp e
left outer join sample s
on s.empno=e.empno
)
EMPNO SAL DATES
----- --------- ----------
7788 3000,00 1
7839 5000,00 1
7844 1500,00 0
5499 9000,00 0
7782 250,00 0
7521 1250,00 0
7654 1250,00 0
5498 3000,00 0
5410 1150,00 0
7698 2850,00 0
7566 2975,00 0
7499 1600,00 0
7934 1300,00 0
7902 3000,00 0
7369 850,00 0
5411 500,00 0
7876 1100,00 0
7900 950,00 0
18 rows selected
for each empno on table emp that exists (if exists) also on the example table:
(1) if dates1 and dates 2 are null, the flag {dates column} should be 1
(2) if dates1 is not null, the flag should be 1
(3) if dates2 is not null, the flag must be 0
If empno does not exist on the sample of the table, the flag must be 0
The problem is when I insert a new record in the empno existing on the sample table... such as:insert into sample values(7844,NULL,'11/10/2010');
Notes: dates1 or dates2 cannot be simultaneously null (but can be simultaneously null),
two records appear whereas only one is expected. The one expected is:
7844,NULL,'11/10/2010'
If dates2 exists then the flag is 0 (it replaces the other cases, for example if only empno gave or empno and both dates values)
I use dev10g v.2
How to write the query to get the result you want...?
Thank you
SIMCheck the code below...
I could not fully understand what conditions take priority... so change the conditions in this case, according to the order in which they must be evaluated.
1 select e.empno, 2 e.ename, 3 e.sal, 4 s.dates1, 5 s.dates2, 6 case when (s.empno is null) then 0 7 when (s.dates1 is null and s.dates2 is null) then 0 8 when (s.dates2 is not null) then 0 9 when (s.dates1 is not null) then 1 10 else 1 11 end flag 12 from emp e, 13 sample s 14* where e.empno = s.empno (+) SQL> / EMPNO ENAME SAL DATES1 DATES2 FLAG ---------- ---------- ---------- ---------- ---------- ---------- 1002 SMITH 800 0 7369 SMITH 800 0 7499 ALLEN 1600 0 7521 WARD 1250 0 7566 JONES 2975 0 7654 MARTIN 1250 0 7698 BLAKE 2850 0 7782 CLARK 2450 0 7788 SCOTT 3000 0 7839 KING 5000 10/10/2009 1 7844 TURNER 1500 11/10/2010 0 EMPNO ENAME SAL DATES1 DATES2 FLAG ---------- ---------- ---------- ---------- ---------- ---------- 7876 ADAMS 1100 0 7900 JAMES 950 0 7902 FORD 3000 0 7934 MILLER 1300 0
The outer join will ensure you get a null value for sample.empno, so you don't need to do a still exists...
s.empno is null and e.empbno = s.empno(+)
We will give you all the lines in the example table that do not have a line used for the emp table.
-
Hello world
It seems Photoshop eyedropper or CMS has a problem. I've attached an example of .psd file so that anyone can reproduce the error.
Simply open and switch layer1 to the linear density screen blending mode. You will notice that therefore gray pixels will get visually a bit brighter, but the pipette will show RGB = (38,38,38) in both cases! (you can measure anywhere in the center of the image, for example the pixel (X = 51, Y = 35), which is the point where I measured for the screenshots below).
The point is: any pixel identified by Photoshop RGB = (38,38,38) should look the same, not sometimes brilliant and sometimes darker.
If you don't trust your eyes (which can fall pray to an optical illusion), just open my screenshots in any application with a pipette (even Windows Paint will do I guess) and compare the values of the gray area (make sure that the eyedropper sample size is 1 x 1 (sample point)). The values will differ.
Or if you want to not count on my screenshots, just make your own.
To ensure that additional measures, I also used a pipette utility screen named "ColorCop" which displays the actual values of RGB pixel of the screen at the current position of the cursor in real-time. The recorded values are obviously the same as can be recovered in the screenshots below, either = (42,42,42) for the screenshot 1 RGB and RGB = (43,43,43) for the screenshot 2.
NOTE 1: The question is unrelated to any resulting possible rounding of blend modes errors and multiple layers. To prove this, you can flatten the image (menu: layer > > flatten image). Still the same problem.
NOTE 2: For those of you familiar with color management, the actual values comes from your screenshots depending on the color profile associated with your monitor. This explains the differences between the RGB = (38,38,38) and the values in the screenshots (in my case 42,42,42 and 43,43,43). Your values will be obviously different. I also noticed that if you choose sRGB as your monitor profile, the error can be reproduced.
Parameters:
the color picker sample size: 1 x 1
document measured pixel: X = 51, Y = 35
measure screen pixel: X = 602, Y = 510
Adobe Photoshop: CS3
the document color space: (irrelevant, sRGB)
document .psd in question: Home
screenshot 1 (RGB = 38, 38, 38 shown in dark gray):
(click to enlarge!) :
screenshot 2 (RGB = 38, 38, 38 shown in lighter gray):
always looks like a simple rounding error for me, when you look at to CMYK you get 71/65/64/70 for screen and 71/65/64/69 for linear density
-
How to use Ajax get multiple values in an array?
Hi All-
I am using AJAX to get multiple values in a table using example of Denes Kubicek in the following link-
http://apex.oracle.com/pls/otn/f?p=31517:239:9172467565606:NO:
Basically, I want to use the drop-down list to fill the rest of the values in the form.
I created the example (Ajax get several values, 54522 application) on the Oracle site.
http://apex.oracle.com/pls/apex/f?p=4550:1:0:
Workspace: iConnect
Login: demo
password: demo
I was able to reproduce his example on page 1 (homepage).
However, I want to use system generate a table to complete this example and was not able to complete the data correctly.
Page 2 (method 2) is that I'm struggling to fill the column values. When I checked the item application values in the Session, and values seems to be filled properly.
That's what I did on this page:
1 create an Application process on-demand - Set_Multi_Items_Tabular2:
DECLARE v_subject my_book_store.subject%TYPE; v_price my_book_store.price%TYPE; v_author my_book_store.author%TYPE; v_qty NUMBER; CURSOR cur_c IS SELECT subject, price, author, 1 qty FROM my_book_store WHERE book_id = :temporary_application_item2; BEGIN FOR c IN cur_c LOOP v_subject := c.subject; v_price := c.price; v_author := c.author; v_qty := c.qty; END LOOP; OWA_UTIL.mime_header ('text/xml', FALSE); HTP.p ('Cache-Control: no-cache'); HTP.p ('Pragma: no-cache'); OWA_UTIL.http_header_close; HTP.prn ('<body>'); HTP.prn ('<desc>this xml genericly sets multiple items</desc>'); HTP.prn ('<item id="f04_' || :t_rownum || '">' || v_subject || '</item>'); HTP.prn ('<item id="f05_' || :t_rownum || '">' || v_price || '</item>'); HTP.prn ('<item id="f06_' || :t_rownum || '">' || v_author || '</item>'); HTP.prn ('<item id="f07_' || :t_rownum || '">' || v_qty || '</item>'); HTP.prn ('</body>'); END;
2. create two objects application - TEMPORARY_APPLICATION_ITEM2, T_ROWNUM2
3. put the following text in the Page header:
<script language="JavaScript" type="text/javascript"> function f_set_multi_items_tabular2(pValue, pRow){ var get = new htmldb_Get(null,html_GetElement('pFlowId').value, 'APPLICATION_PROCESS=Set_Multi_Items_Tabular2',0); if(pValue){ get.add('TEMPORARY_APPLICATION_ITEM2',pValue) get.add('T_ROWNUM2',pRow) }else{ get.add('TEMPORARY_APPLICATION_ITEM2','null') } gReturn = get.get('XML'); if(gReturn){ var l_Count = gReturn.getElementsByTagName("item").length; for(var i = 0;i<l_Count;i++){ var l_Opt_Xml = gReturn.getElementsByTagName("item")[i]; var l_ID = l_Opt_Xml.getAttribute('id'); var l_El = html_GetElement(l_ID); if(l_Opt_Xml.firstChild){ var l_Value = l_Opt_Xml.firstChild.nodeValue; }else{ var l_Value = ''; } if(l_El){ if(l_El.tagName == 'INPUT'){ l_El.value = l_Value; }else if(l_El.tagName == 'SPAN' && l_El.className == 'grabber'){ l_El.parentNode.innerHTML = l_Value; l_El.parentNode.id = l_ID; }else{ l_El.innerHTML = l_Value; } } } } get = null; } </script> Add the follwing to the end of the above JavaScript: <script language="JavaScript" type="text/javascript"> function setLOV(filter, list2) { var s = filter.id; var item = s.substring(3,8); var field2 = list2 + item; f_set_multi_items_tabular2(filter, field2); }
4 query in the form:
select "BOOK_ID", "BOOK", "SUBJECT", "PRICE", "AUTHOR", "QTY", "BOOK_ID" BOOK_ID_DISPLAY from "#OWNER#"."MY_BOOK_STORE"
5. in the column of Book_ID_DISPLAY attribute:
Add the following code to the attributes of the element: onchange = "javascript:f_set_multi_items_tabular2(this.value,'#ROWNUM#'); »
Changed-> onchange = "javascript:setLOV(this,'f03'); »
Now, T_ROWNUM2 returns the value as f03_0001. But TEMPORARY_APPLICATION_ITEM2 returns in the form [object HTMLSelectElement]...
Please help me to see how I can fill the data in the tabular presentation format. Thank you in advance!
Ling
Updating code in red...
Ling
LC says:
Application Item Value Item Name 54522 3 TEMPORARY_APPLICATION_ITEM2 54522 f03_0003 T_ROWNUM2 No T_ROWNUM2 should be 0003.
I made a copy of your page to make corrections.
There are several problems.
First you where submiting T_ROWNUM2 whereas you would use: t_rownum in the pl/sql code.
I changed the name of the element in the f_set_multi_items_tabular2.
Secondly you where now affecting the rownumber f03_0001 for the first line.
Resulting XML returned as follows.
this xml genericly sets multiple items - CSS Mastery
- 22
- Andy Budd
- 1
I changed the following text in the show_lov.
var point = s.substring (4.8);
var Field2 = item;
I also had a compilation of pl/sql code error, there was a); missing the end of the last item. Fixed that too.
But why do you think lpad won't work for lines 10 and more.
LPAD ('10', 4, '0') will give "0010"
LPAD ('100 ', 4,'0 ') will give "0100"
LPAD ('1000 ', 4,'0 ') will give '1000'
So unless you have more than 9999 lines you would have no problem.
Nicolette
-
Find the numerical values of gray?
Hi all, I'm a bit new to photoshop and I need help.
I have some pictures that I've converted to grey - but I need to find a numerical value for the gray or dark intensity or something of that ilk. It is not for the whole picture, just for a very small area.
Any help is greatly appreciated.
I was not quite awake either.
If the image is grayscale, the value of the pipette will be indicated as a percentage of K. 0 = white. 100 = black.
Lee
-
Re: Font book.
I chose "restore standard fonts" by mistake. How to get back on my selection. The Cancel button is grayed out so I can't cancel it. Any suggestions? Thanks in advance!
If you click on 'Restore the standard fonts', fonts that are not included in the OS X systems is placed in a "fonts folder (deleted) next to the fonts folder.
/ Library/Fonts
-
Get the Max values and average of the different cycles in the single channel
Hello
I'm trying to get the Max values and average of the single channel that has different cycles it contains. I tried to use commands such as Chnclasspeak3 and chnpeakfind, but they were not useful for me. What I need is the Max values and average of the different cycles numbers saved in the data channel.
Exampld if the string contains 5 numbers of repetitive cycles, then we must find the maximum values and the average of these 5 cycles in the single channel. Attached reference data. This is the .raw file and I have the plugin for it to use in diadem 11.1.
Kind regards
X. Ignatius
Hello, Ignatius,.
Sorry, it took some time to provide a replacement based on the script for the function. Please take a look at the attached script. I changed the script to use my function if the tiara-version is less than 12. My script function is not as fast and more stable than the implementation of tiara, but for now, it does the job
Andreas
-
Get value connection user in the Fusion Applications to use it in the definition of work.
I have a working definition of custom applications of fusion that it contains a string attribute (textbox).
Is it possible to load into this text box, any value of the user logged in fusion applications? UID, email, user name, etc..
My last goal is to load a default value for a LOV according to this value, but I need to know how I can get it.
You create the functionality of JDeveloper, it's you set VO? If so for more information of the current user, you can optionally use SecurityContext, however your condition seems to be to get details about any user? For more complex needs, I think that you could possibly use OPSS user and role API, however note that this may require a bit of configuration and the permissions granted to your code to be allowed access to the API. There are also a few HCM tables available that could potentially use, see REL for more information on the tables PER_USERS, PER_ROLES_DN etc...
--
Jani Rautiainen
Relationship with the developers of Applications in fusion
-
How to get a ledger_id before release of the report by using FND_PROFILE. Value
Hi all, I am developing a customized using 10 g generator report. How can I get Ledger_id before release of the report by using FND_PROFILE. VALUE(). I tried with this V_LEDGER_ID: = FND_PROFILE. VALUE('GL_SET_OF_BKS_ID'). But it does not work. Please let me know how to get the legder_id using FND_PROFILE. VALUE before release of the report. Thanks, I'm glad.
What version of oracle apps?
have you used the user exist in your report?
Try using the outputs of the user and P_CONC_REQUEST_ID
-
I have an HTML5 form that allows the user to select 1 of 6 provinces of Costa Rica. If they do not select a Province, I use php code to send a NULL value and the other selections research of the form looking for all Provinces. If they choose a province, we are looking for database records that are found in this province. Currently I use the value = '%' as the selected value if the user does not have a choice. It works and looks in all provinces, but I get an error of W3c checking on the value = '% '. Y at - it another way to send a NULL value. PS: I have the same problem on the following form which allows you to select the Business category. The page is http://www.yellowpagescr.com
Here is a copy of the code. The RED line works but gets a W3c issue error of the test page. :
< form = class "navbar-form Center navigation bar" role = "Search" action = "#searchresults" method = "get" name = "selectterms" id = "selectterms" title = "" >
< select name = "province" autofocus class = 'copyright' title = "Click to select a Province (optional)" >
< option value = '%' selected = "selected" > all Provinces < / option >
< option value = "alajuela" > Alajuela < / option >
< option value = "cartago" > Cartago < / option >
< option value = "Guanacaste" selected > Guanacaste < / option >
< option value = "heredia" > Heredia < / option >
< option value = "Limon" > Limon < / option >
< option value = "Puntarenas" > Puntarenas < / option >
< option value = "San Jose" > San Jose < / option >
< option value = "Other" > other < / option >
< / select >
The correct way.
-
How to get the value to help trigger the poster or y at - it another option.
Hello
I have two tables emp and dept in the two table it is last_updatedatetime of column dating from stores over time, and there are a few more columns in both the table and the deptno is common in both table
Then, I created a view using this table with readonly.
now, I wanted to get these value from view if last_updatetime change in the base table and wanted to store only the data in a temporary table.
Please help me to solve the above problem
Thanks in advance
I don't know y at - it another way, other than the triggers to audit changes. I wonder how a READ ONLY view (just SELECT the operation) could help fill some other temp table because you can't keep questioning the view at regular intervals. Instead, I would say, is to create a DML trigger on the table DEPT_EMP. Inside of the trigger call a stored procedure to control the corresponding State (WHERE the d.empno = e.empno AND e.emp_p_ind = 'Y').
-
How to get the value of DeviceKet in the QueryChangedDiskAreas function?
Hello
I'm trying to get the value of block changed to an ESXi Server virtual computer. I have the reference to object for the virtual machine must be passed to the QueryChangedDiskAreas function and snapshot. How can I get the 3rd parameter deviceKey - which I understand is the disc I get the Changed block for. Does someone can tell how I can get this value?
Thank you
. / Siva
Hello Shiva!
I suggest to use the property of the data object VM.config.hardware.device [] .key. You will for sure have to analyze the table first of all find the virtual disk in question. I can say that the deviceKey is the array index. But I would not count on that. In order to better use its practical value.
Hope this helps
-
How can I get a clear picture after the use of the pipette?
I found how to use the pipette, but after you apply the effect, my background is grainy and snowy. How can I get it clear?
Here's another good is a little more to the point.
Thank you
Kevin
Maybe you are looking for
-
Could not initialize the safety component of the application. The most likely cause is problems with the files in the directory of the profile of your application. Please check that this directory has no restriction of read/write and your hard disk i
-
You can compress files saved to the backup profile?
I'm saving up several Firefox profile for the backup folders, some are simple copies of the profiles, some are created via the FEBE extension: since they take up much space, can I compress with a program like 7zip saying? They will be usable?
-
Maverick incompatible with Officejet Pro 8600 Plus
Maverick update os x 10.9 is incompatible with Officejet Pro 8600 Plus. 1 PDF files from the Web pages are black and show no information when I try to print from any browser. Must take snapshots of Web page and print from that 2 info printer shows t
-
Kingston Hyperx SH100S3 / 240G 2.5 "SATA III Solid State Drive
Before making a purchase this SSD will work in my Lenovo ThinkPad T410 2516ADU. Thank you.
-
7510 all-in-One printer goes offline as I am trying to print (Snow Leopard)